Skip to content

Commit 3c09c69

Browse files
tomakacramertj
authored andcommitted
Make AtomicWaker::new() a const fn
1 parent 240abab commit 3c09c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-core/src/task/__internal/atomic_waker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const WAKING: usize = 0b10;
197197

198198
impl AtomicWaker {
199199
/// Create an `AtomicWaker`.
200-
pub fn new() -> Self {
200+
pub const fn new() -> Self {
201201
// Make sure that task is Sync
202202
trait AssertSync: Sync {}
203203
impl AssertSync for Waker {}

0 commit comments

Comments
 (0)