From 2d4d68b325f0c1311fff9d9e73f06db85f1fb55d Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 22 Feb 2024 22:53:49 +0900 Subject: [PATCH] Remove redundant imports ``` error: the item `Ordering` is imported redundantly --> src/main.rs:12:5 | 12 | use core::sync::atomic::Ordering; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 15 | use portable_atomic::*; | ------------------ the item `Ordering` is already imported here | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]` ``` --- tests/avr/src/main.rs | 2 -- tests/gba/src/main.rs | 2 -- tests/no-std-qemu/src/main.rs | 2 -- tests/xtensa/src/main.rs | 2 -- 4 files changed, 8 deletions(-) diff --git a/tests/avr/src/main.rs b/tests/avr/src/main.rs index dfbad583..7ae7198c 100644 --- a/tests/avr/src/main.rs +++ b/tests/avr/src/main.rs @@ -10,8 +10,6 @@ #[path = "../../api-test/src/helper.rs"] mod helper; -use core::sync::atomic::Ordering; - use portable_atomic::*; #[avr_device::entry] diff --git a/tests/gba/src/main.rs b/tests/gba/src/main.rs index 3ea161bb..54922b42 100644 --- a/tests/gba/src/main.rs +++ b/tests/gba/src/main.rs @@ -9,8 +9,6 @@ #[path = "../../api-test/src/helper.rs"] mod helper; -use core::sync::atomic::Ordering; - use gba::prelude::*; use portable_atomic::*; diff --git a/tests/no-std-qemu/src/main.rs b/tests/no-std-qemu/src/main.rs index a49e332d..8b639773 100644 --- a/tests/no-std-qemu/src/main.rs +++ b/tests/no-std-qemu/src/main.rs @@ -8,8 +8,6 @@ #[path = "../../api-test/src/helper.rs"] mod helper; -use core::sync::atomic::Ordering; - use portable_atomic::*; use semihosting::{print, println}; diff --git a/tests/xtensa/src/main.rs b/tests/xtensa/src/main.rs index 7b30b3e0..ef94a75e 100644 --- a/tests/xtensa/src/main.rs +++ b/tests/xtensa/src/main.rs @@ -9,8 +9,6 @@ #[path = "../../api-test/src/helper.rs"] mod helper; -use core::sync::atomic::Ordering; - use portable_atomic::*; use esp32_hal as _;