Skip to content

Commit

Permalink
Fix unknown_lints and unused_imports warnings in test (#2732)
Browse files Browse the repository at this point in the history
```
error: unknown lint: `useless_anonymous_reexport`
 --> futures/tests/no-std/src/lib.rs:3:10
  |
3 | #![allow(useless_anonymous_reexport)]
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `-D unknown-lints` implied by `-D warnings`

error: unused import: `futures_core::task::__internal::AtomicWaker as _`
 --> futures/tests/no-std/src/lib.rs:7:9
  |
7 | pub use futures_core::task::__internal::AtomicWaker as _;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`

error: unused import: `futures_channel::oneshot as _`
  --> futures/tests/no-std/src/lib.rs:15:9
   |
15 | pub use futures_channel::oneshot as _;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `futures::task::AtomicWaker as _`
  --> futures/tests/no-std/src/lib.rs:19:9
   |
19 | pub use futures::task::AtomicWaker as _;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `futures::stream::FuturesOrdered as _`
  --> futures/tests/no-std/src/lib.rs:23:9
   |
23 | pub use futures::stream::FuturesOrdered as _;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `futures_util::task::AtomicWaker as _`
  --> futures/tests/no-std/src/lib.rs:27:9
   |
27 | pub use futures_util::task::AtomicWaker as _;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `futures_util::stream::FuturesOrdered as _`
  --> futures/tests/no-std/src/lib.rs:31:9
   |
31 | pub use futures_util::stream::FuturesOrdered as _;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
taiki-e committed Mar 30, 2023
1 parent 3bee396 commit a3f80e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures/tests/no-std/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg(nightly)]
#![no_std]
#![allow(useless_anonymous_reexport)]
#![allow(unused_imports)]

#[cfg(feature = "futures-core-alloc")]
#[cfg(target_has_atomic = "ptr")]
Expand Down

0 comments on commit a3f80e6

Please sign in to comment.