crosvm/devices/src
Daniel Verkamp 5fa53bc27a devices: vvu: wl: do not hold RefCell borrow across await
Change the comparison from an `if let` into a regular `if ... ==` by
implementing `PartialEq` for the relevant types. This makes the lifetime
of the `wl_state.borrow_mut()` end before calling
`kick_evt.next_val().await()`.

Fixes a new clippy warning from Rust 1.61.0:
<https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref>

BUG=None
TEST=tools/clippy # with Rust 1.61.0

Change-Id: I067c2ab532d753306cd5334df5bb4f2c7c2e6584
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3671130
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Anton Romanov <romanton@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-01 00:32:58 +00:00
..
irqchip
pci devices: pci: PciBarIndex API cleanup 2022-05-25 20:36:40 +00:00
platform
register_space
sys devices: serial: introduce SerialInput trait 2022-05-26 10:09:52 +00:00
usb devices: usb: host: don't use Descriptor as temporary descriptor storage 2022-05-28 07:29:00 +00:00
utils
virtio devices: vvu: wl: do not hold RefCell borrow across await 2022-06-01 00:32:58 +00:00
acpi.rs crosvm: vm_events: consolidate vm events into one framework. 2022-05-20 18:04:21 +00:00
bat.rs devices: bat: remove unneeded use of Descriptor 2022-05-28 07:29:01 +00:00
bus.rs
cmos.rs
debugcon.rs Reland "devices: debugcon: add bochs-style debugcon device" 2022-05-26 19:25:02 +00:00
direct_io.rs
direct_irq.rs
i8042.rs crosvm: vm_events: consolidate vm events into one framework. 2022-05-20 18:04:21 +00:00
irq_event.rs
lib.rs Reland "devices: debugcon: add bochs-style debugcon device" 2022-05-26 19:25:02 +00:00
pit.rs devices: pit: avoid storing raw file descriptor 2022-05-28 07:29:02 +00:00
pl030.rs
proxy.rs
serial.rs devices: serial: introduce SerialInput trait 2022-05-26 10:09:52 +00:00
serial_device.rs Reland "devices: debugcon: add bochs-style debugcon device" 2022-05-26 19:25:02 +00:00
software_tpm.rs
sys.rs
vfio.rs