mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
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> |
||
---|---|---|
.. | ||
irqchip | ||
pci | ||
platform | ||
register_space | ||
sys | ||
usb | ||
utils | ||
virtio | ||
acpi.rs | ||
bat.rs | ||
bus.rs | ||
cmos.rs | ||
debugcon.rs | ||
direct_io.rs | ||
direct_irq.rs | ||
i8042.rs | ||
irq_event.rs | ||
lib.rs | ||
pit.rs | ||
pl030.rs | ||
proxy.rs | ||
serial.rs | ||
serial_device.rs | ||
software_tpm.rs | ||
sys.rs | ||
vfio.rs |