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:
Daniel Verkamp 2019-03-19 13:13:53 -07:00 committed by chrome-bot
parent a83356452c
commit 26d15fae1e

View file

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