diff options
| author | joboet <jonasboettiger@icloud.com> | 2022-12-14 13:55:30 +0100 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2022-12-14 13:55:30 +0100 |
| commit | f9b56846ef42fa516c5fc53bce84835a5bc108a0 (patch) | |
| tree | 5c006f6cecd951d2466459df308ce431e03a02aa /library/std/src/sys/wasm | |
| parent | dc30b92cc576ed9e097db7fece0af13662de8d8d (diff) | |
| download | rust-f9b56846ef42fa516c5fc53bce84835a5bc108a0.tar.gz rust-f9b56846ef42fa516c5fc53bce84835a5bc108a0.zip | |
std: use a more efficient `Once` on platforms without threads
Diffstat (limited to 'library/std/src/sys/wasm')
| -rw-r--r-- | library/std/src/sys/wasm/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/wasm/mod.rs b/library/std/src/sys/wasm/mod.rs index d68c3e5f1df..77ebe3c4ac6 100644 --- a/library/std/src/sys/wasm/mod.rs +++ b/library/std/src/sys/wasm/mod.rs @@ -66,6 +66,8 @@ cfg_if::cfg_if! { } else { #[path = "../unsupported/locks/mod.rs"] pub mod locks; + #[path = "../unsupported/once.rs"] + pub mod once; #[path = "../unsupported/thread.rs"] pub mod thread; } |
