Skip to content

Commit

Permalink
Fix unused_imports warning
Browse files Browse the repository at this point in the history
```
   error: unused import: `self::stream_select_mod::*`
    --> futures-util/src/async_await/mod.rs:38:9
     |
  38 | pub use self::stream_select_mod::*;
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: `-D unused-imports` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(unused_imports)]`
```
  • Loading branch information
taiki-e committed Oct 26, 2023
1 parent 43c0c5f commit 8570ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions futures-util/src/async_await/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ mod select_mod;
pub use self::select_mod::*;

// Primary export is a macro
#[cfg(feature = "std")]
#[cfg(feature = "async-await-macro")]
mod stream_select_mod;
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/64762
#[cfg(feature = "std")]
#[cfg(feature = "async-await-macro")]
pub use self::stream_select_mod::*;

Expand Down
2 changes: 0 additions & 2 deletions futures-util/src/async_await/stream_select_mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! The `stream_select` macro.

#[cfg(feature = "std")]
#[allow(unreachable_pub)]
#[doc(hidden)]
pub use futures_macro::stream_select_internal;
Expand Down Expand Up @@ -28,7 +27,6 @@ pub use futures_macro::stream_select_internal;
/// }
/// # });
/// ```
#[cfg(feature = "std")]
#[macro_export]
macro_rules! stream_select {
($($tokens:tt)*) => {{
Expand Down

0 comments on commit 8570ea6

Please sign in to comment.