From 2c1f5226c514b5ad1157e8ab2f8f027d8374581a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 13:50:11 +0900 Subject: [PATCH] Use const thread_local --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9343411..5098f6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1049,7 +1049,7 @@ impl> + Unpin> Listener { std::thread_local! { /// Cached thread-local parker/unparker pair. - static PARKER: RefCell> = RefCell::new(None); + static PARKER: RefCell> = const { RefCell::new(None) }; } // Try to borrow the thread-local parker/unparker pair.