Browse Source

Remove use common in mod

Alice Wang 2 năm trước cách đây
mục cha
commit
64e6d3d00e
2 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 0 2
      src/device/socket/mod.rs
  2. 1 1
      src/device/socket/vsock.rs

+ 0 - 2
src/device/socket/mod.rs

@@ -4,7 +4,5 @@ mod error;
 mod protocol;
 mod vsock;
 
-use super::common;
-
 pub use error::SocketError;
 pub use vsock::VirtIOSocket;

+ 1 - 1
src/device/socket/vsock.rs

@@ -1,8 +1,8 @@
 //! Driver for VirtIO socket devices.
 
-use super::common::Feature;
 use super::error::SocketError;
 use super::protocol::{VirtioVsockConfig, VirtioVsockHdr, VirtioVsockOp, VirtioVsockPacket};
+use crate::device::common::Feature;
 use crate::hal::{BufferDirection, Dma, Hal};
 use crate::queue::VirtQueue;
 use crate::transport::Transport;