Skip to content

Commit

Permalink
Make AtomicWaker::new() a const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored and cramertj committed Dec 18, 2019
1 parent 240abab commit 3c09c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-core/src/task/__internal/atomic_waker.rs
Expand Up @@ -197,7 +197,7 @@ const WAKING: usize = 0b10;

impl AtomicWaker {
/// Create an `AtomicWaker`.
pub fn new() -> Self {
pub const fn new() -> Self {
// Make sure that task is Sync
trait AssertSync: Sync {}
impl AssertSync for Waker {}
Expand Down

0 comments on commit 3c09c69

Please sign in to comment.