From 7fb697f17e208fd1b09027af0bacca195ca85b85 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 28 Dec 2024 09:55:17 +0900 Subject: [PATCH] Resolve unused mutable warning --- src/rt.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rt.rs b/src/rt.rs index bbce466..790f85a 100644 --- a/src/rt.rs +++ b/src/rt.rs @@ -239,6 +239,10 @@ fn init(enable_io: bool) -> (Runtime, LocalSet) { } fn new_local() -> LocalSet { + #[cfg(not(tokio_unstable))] + let local = LocalSet::new(); + + #[cfg(tokio_unstable)] let mut local = LocalSet::new(); #[cfg(tokio_unstable)]