Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrieshiemstra committed May 12, 2024
1 parent 12a1d52 commit 226cab0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/quickjsruntimeadapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<QuickJsRuntimeAdapter >> = {
RefCell::new(None)
};
pub(crate) static QJS_RT: RefCell<Option<QuickJsRuntimeAdapter >> = const { RefCell::new(None) };

}

Expand All @@ -271,7 +269,7 @@ pub struct QuickJsRuntimeAdapter {
}

thread_local! {
static NESTED: RefCell<bool> = RefCell::new(false);
static NESTED: RefCell<bool> = const {RefCell::new(false)};
}

#[derive(Serialize)]
Expand Down

0 comments on commit 226cab0

Please sign in to comment.