Skip to content

Commit

Permalink
Fix a new clippy warning in nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed Jan 16, 2024
1 parent 44fbcd2 commit c378825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audioipc/src/ipccore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::fmt::Debug;

const WAKE_TOKEN: Token = Token(!0);

thread_local!(static IN_EVENTLOOP: std::cell::RefCell<Option<thread::ThreadId>> = std::cell::RefCell::new(None));
thread_local!(static IN_EVENTLOOP: std::cell::RefCell<Option<thread::ThreadId>> = const { std::cell::RefCell::new(None) });

fn assert_not_in_event_loop_thread() {
IN_EVENTLOOP.with(|b| {
Expand Down

0 comments on commit c378825

Please sign in to comment.