fmt
This commit is contained in:
parent
74c5a86fe3
commit
3a2780c166
10
src/lib.rs
10
src/lib.rs
|
@ -1,12 +1,12 @@
|
|||
//! `futures::task::AtomicWaker` extracted into its own crate.
|
||||
//!
|
||||
//!
|
||||
//! # Features
|
||||
//!
|
||||
//!
|
||||
//! This crate adds a feature, `atomic-polyfill`, which uses a polyfill
|
||||
//! from the [`atomic-polyfill`] crate in order to provide functionality
|
||||
//! to targets without atomics. See the [`README`] for the [`atomic-polyfill`]
|
||||
//! crate for more information on how this is implemented by the end-user.
|
||||
//!
|
||||
//!
|
||||
//! [`atomic-polyfill`]: https://crates.io/crates/atomic-polyfill
|
||||
//! [`README`]: https://github.com/embassy-rs/atomic-polyfill/blob/main/README.md
|
||||
|
||||
|
@ -17,10 +17,10 @@ use core::fmt;
|
|||
use core::sync::atomic::Ordering::{AcqRel, Acquire, Release};
|
||||
use core::task::Waker;
|
||||
|
||||
#[cfg(not(feature = "atomic-polyfill"))]
|
||||
use core::sync::atomic::AtomicUsize;
|
||||
#[cfg(feature = "atomic-polyfill")]
|
||||
use atomic_polyfill::AtomicUsize;
|
||||
#[cfg(not(feature = "atomic-polyfill"))]
|
||||
use core::sync::atomic::AtomicUsize;
|
||||
|
||||
/// A synchronization primitive for task wakeup.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue