From 4d52150b87dd2af0dc8363ca0d9f59fd7a13b1a4 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 19 Mar 2024 17:26:29 +0000 Subject: [PATCH] devices: gpio_pl061: Remove redundant imports error: the item `read_le_u32` is imported redundantly Error: --> devices/src/legacy/gpio_pl061.rs:342:17 | 341 | use super::*; | -------- the item `read_le_u32` is already imported here 342 | use crate::{read_le_u32, write_le_u32}; | ^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]` error: the item `write_le_u32` is imported redundantly Error: --> devices/src/legacy/gpio_pl061.rs:342:30 | 341 | use super::*; | -------- the item `write_le_u32` is already imported here 342 | use crate::{read_le_u32, write_le_u32}; | ^^^^^^^^^^^^ error: the item `Arc` is imported redundantly Error: --> devices/src/legacy/gpio_pl061.rs:343:9 | 341 | use super::*; | -------- the item `Arc` is already imported here 342 | use crate::{read_le_u32, write_le_u32}; 343 | use std::sync::Arc; | ^^^^^^^^^^^^^^ Signed-off-by: Rob Bradford --- devices/src/legacy/gpio_pl061.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/devices/src/legacy/gpio_pl061.rs b/devices/src/legacy/gpio_pl061.rs index f4d83249a..02eeebd19 100644 --- a/devices/src/legacy/gpio_pl061.rs +++ b/devices/src/legacy/gpio_pl061.rs @@ -339,8 +339,6 @@ impl Migratable for Gpio {} #[cfg(test)] mod tests { use super::*; - use crate::{read_le_u32, write_le_u32}; - use std::sync::Arc; use vm_device::interrupt::{InterruptIndex, InterruptSourceConfig}; use vmm_sys_util::eventfd::EventFd;