Apply suggestion from @tisonkun

This commit is contained in:
tison 2026-01-07 09:31:59 +08:00 committed by GitHub
parent cd39f5a5fe
commit 6346d14202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -360,6 +360,7 @@ impl<W: LocalWake + 'static> From<Rc<W>> for RawWaker {
/// waker.wake_by_ref(); // Prints "woken".
/// waker.wake(); // Prints "woken".
/// ```
// #[unstable(feature = "local_waker", issue = "118959")]
#[unstable(feature = "waker_fn", issue = "149580")]
pub fn local_waker_fn<F: Fn() + Send + Sync + 'static>(f: F) -> LocalWaker {
struct LocalWakeFn<F> {