Skip to content

Commit bf3f1d5

Browse files
authored
Merge pull request #1251 from Yarwin/fix-wrongly-gated-feature
Fix `is_main_thread` being gated behind `#[cfg(not(wasm_nothreads))]` despite being necessary to build wasm nothread.
2 parents 517053d + b3d14d5 commit bf3f1d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

godot-core/src/init/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ use crate::out;
1616

1717
pub use sys::GdextBuild;
1818

19+
pub use sys::is_main_thread;
1920
#[cfg(not(wasm_nothreads))]
20-
pub use sys::{is_main_thread, main_thread_id};
21+
pub use sys::main_thread_id;
2122

2223
#[doc(hidden)]
2324
#[deny(unsafe_op_in_unsafe_fn)]

0 commit comments

Comments
 (0)