Skip to content

Commit

Permalink
Remove redundant import
Browse files Browse the repository at this point in the history
```
error: the item `Future` is imported redundantly
  --> tests/rwlock.rs:11:5
   |
9  | use futures_lite::prelude::*;
   |     ------------------------ the item `Future` is already imported here
10 | #[cfg(not(target_family = "wasm"))]
11 | use std::future::Future;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`
```
  • Loading branch information
taiki-e authored and Jules-Bertholet committed Mar 3, 2024
1 parent ff4c96f commit aeb9d8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use common::check_yields_when_contended;
#[cfg(not(target_family = "wasm"))]
use futures_lite::prelude::*;
#[cfg(not(target_family = "wasm"))]
use std::future::Future;
#[cfg(not(target_family = "wasm"))]
use std::thread;

use futures_lite::future;
Expand Down

0 comments on commit aeb9d8f

Please sign in to comment.