From 226cab0f677fdfaa2ba29f58ff77553a04e5c852 Mon Sep 17 00:00:00 2001 From: "andries@fam-hiemstra.nl" Date: Sun, 12 May 2024 21:33:19 +0200 Subject: [PATCH] clippy fixes --- src/quickjsruntimeadapter.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/quickjsruntimeadapter.rs b/src/quickjsruntimeadapter.rs index c2c4b1fd60d..09b0313ce0e 100644 --- a/src/quickjsruntimeadapter.rs +++ b/src/quickjsruntimeadapter.rs @@ -246,9 +246,7 @@ thread_local! { /// this only exists for the worker thread of the EsEventQueue /// todo move rt init to toplevel stackframe (out of lazy init) /// so the thread_local should be a refcel containing a null reF? or a None - pub(crate) static QJS_RT: RefCell> = { - RefCell::new(None) - }; + pub(crate) static QJS_RT: RefCell> = const { RefCell::new(None) }; } @@ -271,7 +269,7 @@ pub struct QuickJsRuntimeAdapter { } thread_local! { - static NESTED: RefCell = RefCell::new(false); + static NESTED: RefCell = const {RefCell::new(false)}; } #[derive(Serialize)]