From f093ffcbef09ae44a5f94cc5a0f2d4b0b2ff884b Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 19 Mar 2024 17:31:12 +0000 Subject: [PATCH] devices: uart_pl011: Remove redundant imports error: the item `io` is imported redundantly Error: --> devices/src/legacy/uart_pl011.rs:468:9 | 467 | use super::*; | -------- the item `io` is already imported here 468 | use std::io; | ^^^^^^^ error: the item `Arc` is imported redundantly Error: --> devices/src/legacy/uart_pl011.rs:469:21 | 467 | use super::*; | -------- the item `Arc` is already imported here 468 | use std::io; 469 | use std::sync::{Arc, Mutex}; | ^^^ error: could not compile `devices` (lib test) due to 8 previous errors Error: warning: build failed, waiting for other jobs to finish... Error: The process 'cross' failed with exit code 101 Signed-off-by: Rob Bradford --- devices/src/legacy/uart_pl011.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devices/src/legacy/uart_pl011.rs b/devices/src/legacy/uart_pl011.rs index d698bbcb4..d355ffd69 100644 --- a/devices/src/legacy/uart_pl011.rs +++ b/devices/src/legacy/uart_pl011.rs @@ -465,8 +465,7 @@ impl Migratable for Pl011 {} #[cfg(test)] mod tests { use super::*; - use std::io; - use std::sync::{Arc, Mutex}; + use std::sync::Mutex; use vm_device::interrupt::{InterruptIndex, InterruptSourceConfig}; use vmm_sys_util::eventfd::EventFd;