mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
usb_util: silence unused code warning
The RawFd import is only used when sandboxed-libusb is set, so put it behind a cfg check. BUG=None TEST=cargo build passes without warnings Change-Id: Iaae6131dabff2205f86dac2bf3a4e7ad08e66eac Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1531093 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jingkui Wang <jkwang@google.com>
This commit is contained in:
parent
a83356452c
commit
26d15fae1e
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
use std;
|
use std;
|
||||||
|
#[cfg(feature = "sandboxed-libusb")]
|
||||||
use std::os::unix::io::RawFd;
|
use std::os::unix::io::RawFd;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue