From d8ab0a5e4cce83e0ccbf504db82f0c688912d24a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 3 Mar 2024 21:30:17 +0900 Subject: [PATCH] Remove redundant import ``` 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)]` ``` --- tests/rwlock.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/rwlock.rs b/tests/rwlock.rs index 7ce0b7c..cd6fb92 100644 --- a/tests/rwlock.rs +++ b/tests/rwlock.rs @@ -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;