mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
clippy: Resolve let_and_return
TEST=bin/clippy Change-Id: I83e7fa6fd9075370854b7c651311642748916dc6 Reviewed-on: https://chromium-review.googlesource.com/1566741 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
0995a69bce
commit
55bc919e69
2 changed files with 2 additions and 4 deletions
|
@ -13,7 +13,6 @@ cd ..
|
|||
|
||||
SUPPRESS=(
|
||||
# To be resolved.
|
||||
let_and_return
|
||||
let_unit_value
|
||||
match_ref_pats
|
||||
needless_return
|
||||
|
|
|
@ -112,7 +112,7 @@ impl HostDevice {
|
|||
device: LibUsbDevice,
|
||||
device_handle: DeviceHandle,
|
||||
) -> HostDevice {
|
||||
let device = HostDevice {
|
||||
HostDevice {
|
||||
fail_handle,
|
||||
endpoints: vec![],
|
||||
device,
|
||||
|
@ -123,8 +123,7 @@ impl HostDevice {
|
|||
control_request_setup: UsbRequestSetup::new(0, 0, 0, 0, 0),
|
||||
buffer: None,
|
||||
job_queue,
|
||||
};
|
||||
device
|
||||
}
|
||||
}
|
||||
|
||||
fn get_interface_number_of_active_config(&self) -> i32 {
|
||||
|
|
Loading…
Reference in a new issue