Skip to content

Commit 6b08f77

Browse files
enautbilelmoussaoui
authored andcommitted
make thread_local IS_MAIN_THREAD const in rt.rs
1 parent 032c6de commit 6b08f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: gtk4/src/rt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
}
1414

1515
thread_local! {
16-
static IS_MAIN_THREAD: Cell<bool> = Cell::new(false)
16+
static IS_MAIN_THREAD: Cell<bool> = const{Cell::new(false)}
1717
}
1818

1919
static INITIALIZED: AtomicBool = AtomicBool::new(false);

0 commit comments

Comments
 (0)