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:
David Tolnay 2019-04-12 19:10:17 -07:00 committed by chrome-bot
parent 0995a69bce
commit 55bc919e69
2 changed files with 2 additions and 4 deletions

View file

@ -13,7 +13,6 @@ cd ..
SUPPRESS=(
# To be resolved.
let_and_return
let_unit_value
match_ref_pats
needless_return

View file

@ -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 {