Skip to content

Commit

Permalink
lint: Fix new nightly Clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull authored Feb 26, 2024
1 parent d4230bd commit 531c73c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//! # });
//! ```
#[cfg(feature = "alloc")]
#[cfg(all(not(feature = "std"), feature = "alloc"))]
extern crate alloc;

#[doc(no_inline)]
Expand All @@ -35,7 +35,7 @@ use std::{
#[cfg(feature = "race")]
use fastrand::Rng;

#[cfg(feature = "alloc")]
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::boxed::Box;
use core::task::{Context, Poll};

Expand Down
4 changes: 2 additions & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
//! # });
//! ```
#[cfg(feature = "alloc")]
#[cfg(all(not(feature = "std"), feature = "alloc"))]
extern crate alloc;

#[doc(no_inline)]
pub use futures_core::stream::Stream;

#[cfg(feature = "alloc")]
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::boxed::Box;

use core::fmt;
Expand Down

0 comments on commit 531c73c

Please sign in to comment.