We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 958f565 commit ad7e7f8Copy full SHA for ad7e7f8
src/lib.rs
@@ -73,7 +73,7 @@ use alloc::sync::Arc;
73
74
use core::fmt;
75
use core::future::Future;
76
-use core::mem::{ManuallyDrop, MaybeUninit, forget};
+use core::mem::{forget, ManuallyDrop, MaybeUninit};
77
use core::ptr;
78
use core::task::{Context, Poll, Waker};
79
@@ -749,7 +749,7 @@ impl Listener {
749
}
750
751
/// The task() closure may clone a user-defined waker, which can panic.
752
- ///
+ ///
753
/// This panic would leave the listener in the `WritingTask` state, which will
754
/// lead to an infinite loop. This guard resets it back to the original state.
755
struct ResetState<'a>(&'a AtomicUsize, State);
0 commit comments