From f1026b5dffa264f857557972639652411e014034 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 22 Apr 2022 14:35:43 -0700 Subject: [PATCH] bleh fix 32-bit code Signed-off-by: Eliza Weisman --- tokio/src/runtime/task/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tokio/src/runtime/task/mod.rs b/tokio/src/runtime/task/mod.rs index ac1ee157ea2..b6599888efe 100644 --- a/tokio/src/runtime/task/mod.rs +++ b/tokio/src/runtime/task/mod.rs @@ -501,8 +501,9 @@ impl Id { cfg_not_has_atomic_u64! { pub(crate) fn next() -> Self { use once_cell::sync::Lazy; - use crate::loom::Mutex; - static NEXT_ID: Lazy> = Lazy(|| Mutex::new(1)); + use crate::loom::sync::Mutex; + + static NEXT_ID: Lazy> = Lazy::new(|| Mutex::new(1)); let mut lock = NEXT_ID.lock(); let id = *lock; lock += 1;