Skip to content

Commit

Permalink
Update spin cfgs
Browse files Browse the repository at this point in the history
  • Loading branch information
adavis628 committed Jan 16, 2025
1 parent bcca58f commit 8bcc2ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions futures-util/src/future/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ mod remote_handle;
#[cfg(feature = "std")]
pub use self::remote_handle::{Remote, RemoteHandle};

#[cfg(any(feature = "std", feature = "spin"))]
#[cfg(any(feature = "std", all(feature = "alloc", feature = "spin")))]
mod shared;
#[cfg(any(feature = "std", feature = "spin"))]
#[cfg(any(feature = "std", all(feature = "alloc", feature = "spin")))]
pub use self::shared::{Shared, WeakShared};

impl<T: ?Sized> FutureExt for T where T: Future {}
Expand Down Expand Up @@ -474,7 +474,7 @@ pub trait FutureExt: Future {
/// join_handle.join().unwrap();
/// # });
/// ```
#[cfg(any(feature = "std", feature = "spin"))]
#[cfg(any(feature = "std", all(feature = "alloc", feature = "spin")))]
fn shared(self) -> Shared<Self>
where
Self: Sized,
Expand Down
2 changes: 1 addition & 1 deletion futures-util/src/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub use self::future::CatchUnwind;
#[cfg(feature = "std")]
pub use self::future::{Remote, RemoteHandle};

#[cfg(any(feature = "std", feature = "spin"))]
#[cfg(any(feature = "std", all(feature = "alloc", feature = "spin")))]
pub use self::future::{Shared, WeakShared};

mod try_future;
Expand Down

0 comments on commit 8bcc2ac

Please sign in to comment.