misc: Remove redundant "use" imports

With the nightly toolchain (2024-02-18) cargo check will flag up
redundant imports either because they are pulled in by the prelude on
earlier match.

Remove those redundant imports.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2024-02-19 16:37:15 +00:00
parent 09f3658999
commit adb318f4cd
42 changed files with 19 additions and 67 deletions

View File

@@ -672,18 +672,13 @@ where
#[cfg(test)]
mod tests {
use libc::EFD_NONBLOCK;
use virtio_queue::QueueOwnedT;
use std::io::{Error as IoError, ErrorKind, Read, Result as IoResult, Write};
use std::os::unix::io::RawFd;
use std::time::{Duration, Instant};
use vmm_sys_util::eventfd::EventFd;
use super::super::super::defs::uapi;
use super::super::super::tests::TestContext;
use super::super::defs as csm_defs;
use super::*;
use libc::EFD_NONBLOCK;
use std::io::{Error as IoError, Result as IoResult};
use virtio_queue::QueueOwnedT;
use vmm_sys_util::eventfd::EventFd;
const LOCAL_CID: u64 = 2;
const PEER_CID: u64 = 3;

View File

@@ -146,8 +146,8 @@ impl TxBuf {
mod tests {
use super::*;
use std::io::Error as IoError;
use std::io::ErrorKind;
use std::io::Result as IoResult;
use std::io::{ErrorKind, Write};
struct TestSink {
data: Vec<u8>,