mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
crosvm: silence unused code warning for NonZeroU8
After a recent refactoring of display support, this import is only used when building with the "gpu" feature enabled. Put it behind a cfg check to avoid a warning when building without gpu support. BUG=None TEST=cargo build TEST=emerge-nami crosvm Change-Id: I4e407e09daa93c74203f3472dad5a3713b99d122 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1762448 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
b7bee37759
commit
6f9215cecd
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ use std::fmt::{self, Display};
|
|||
use std::fs::{File, OpenOptions};
|
||||
use std::io::{self, stdin, Read};
|
||||
use std::net::Ipv4Addr;
|
||||
#[cfg(feature = "gpu")]
|
||||
use std::num::NonZeroU8;
|
||||
use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
|
||||
use std::os::unix::net::UnixStream;
|
||||
|
|
Loading…
Reference in a new issue