mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
clippy: Resolve option_map_unit_fn
TEST=bin/clippy Change-Id: I814cfce68c147f63d96fce6d0c465488ad3e336a Reviewed-on: https://chromium-review.googlesource.com/1566744 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
9239602d69
commit
56c2d3631c
2 changed files with 3 additions and 4 deletions
|
@ -14,7 +14,6 @@ cd ..
|
||||||
SUPPRESS=(
|
SUPPRESS=(
|
||||||
# To be resolved.
|
# To be resolved.
|
||||||
let_unit_value
|
let_unit_value
|
||||||
option_map_unit_fn
|
|
||||||
question_mark
|
question_mark
|
||||||
range_plus_one
|
range_plus_one
|
||||||
redundant_closure
|
redundant_closure
|
||||||
|
|
|
@ -1308,9 +1308,9 @@ impl WlState {
|
||||||
// hangup events.
|
// hangup events.
|
||||||
for &send_vfd_id in &send_vfd_ids[..vfd_count] {
|
for &send_vfd_id in &send_vfd_ids[..vfd_count] {
|
||||||
if send_vfd_id.kind == VIRTIO_WL_CTRL_VFD_SEND_KIND_LOCAL {
|
if send_vfd_id.kind == VIRTIO_WL_CTRL_VFD_SEND_KIND_LOCAL {
|
||||||
self.vfds
|
if let Some(vfd) = self.vfds.get_mut(&send_vfd_id.id.into()) {
|
||||||
.get_mut(&send_vfd_id.id.into())
|
vfd.close_remote();
|
||||||
.map(|vfd| vfd.close_remote());
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(WlResp::Ok)
|
Ok(WlResp::Ok)
|
||||||
|
|
Loading…
Reference in a new issue