Skip to content

Commit 33f69a0

Browse files
committed
Remove pin notify future
1 parent 2bf119b commit 33f69a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tokio/src/sync/set_once.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::Notify;
22

3+
use crate::loom::cell::UnsafeCell;
34
use crate::loom::sync::{atomic::AtomicBool, Mutex};
4-
use crate::{loom::cell::UnsafeCell, pin};
55

66
use std::error::Error;
77
use std::fmt;
@@ -356,7 +356,6 @@ impl<T> SetOnce<T> {
356356
}
357357

358358
let notify_fut = self.notify.notified();
359-
pin!(notify_fut);
360359
// take the lock because we're reading value_set
361360
let guard = self.lock.lock();
362361

0 commit comments

Comments
 (0)