summary refs log tree commit diff
path: root/sys_util
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2020-04-23 13:31:44 -0700
committerCommit Bot <commit-bot@chromium.org>2020-04-26 00:15:36 +0000
commite1952dd7d40fe45804cedcafc43c87a5d064b0c5 (patch)
tree4cfef091cad027acb0fbe3177bc28fee3a58e7ed /sys_util
parentd5f47a98657034b0ddc332d5e0b700e38155c160 (diff)
downloadcrosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar.gz
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar.bz2
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar.lz
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar.xz
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.tar.zst
crosvm-e1952dd7d40fe45804cedcafc43c87a5d064b0c5.zip
Remove redundant single-component imports
Fix clippy 1.43.0 clippy::single-component-path-imports warnings.

BUG=None
TEST=bin/clippy

Change-Id: I3f4f54138bedce16dc1ca937bb8bc00a94594f69
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2163203
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'sys_util')
-rw-r--r--sys_util/src/ioctl.rs2
-rw-r--r--sys_util/src/struct_util.rs1
2 files changed, 0 insertions, 3 deletions
diff --git a/sys_util/src/ioctl.rs b/sys_util/src/ioctl.rs
index a0309ff..f8c7604 100644
--- a/sys_util/src/ioctl.rs
+++ b/sys_util/src/ioctl.rs
@@ -7,8 +7,6 @@
 use std::os::raw::*;
 use std::os::unix::io::AsRawFd;
 
-use libc;
-
 /// Raw macro to declare the expression that calculates an ioctl number
 #[macro_export]
 macro_rules! ioctl_expr {
diff --git a/sys_util/src/struct_util.rs b/sys_util/src/struct_util.rs
index 551204e..aa2ca39 100644
--- a/sys_util/src/struct_util.rs
+++ b/sys_util/src/struct_util.rs
@@ -2,7 +2,6 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-use std;
 use std::io::Read;
 use std::mem::size_of;