Skip to content

Commit

Permalink
Remove redundant imports
Browse files Browse the repository at this point in the history
```
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)]`
```
  • Loading branch information
taiki-e committed Feb 22, 2024
1 parent d5100b2 commit 2d4d68b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions tests/avr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#[path = "../../api-test/src/helper.rs"]
mod helper;

use core::sync::atomic::Ordering;

use portable_atomic::*;

#[avr_device::entry]
Expand Down
2 changes: 0 additions & 2 deletions tests/gba/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#[path = "../../api-test/src/helper.rs"]
mod helper;

use core::sync::atomic::Ordering;

use gba::prelude::*;
use portable_atomic::*;

Expand Down
2 changes: 0 additions & 2 deletions tests/no-std-qemu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#[path = "../../api-test/src/helper.rs"]
mod helper;

use core::sync::atomic::Ordering;

use portable_atomic::*;
use semihosting::{print, println};

Expand Down
2 changes: 0 additions & 2 deletions tests/xtensa/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#[path = "../../api-test/src/helper.rs"]
mod helper;

use core::sync::atomic::Ordering;

use portable_atomic::*;

use esp32_hal as _;
Expand Down

0 comments on commit 2d4d68b

Please sign in to comment.