We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b67e2 commit 58b0275Copy full SHA for 58b0275
rayon-core/src/registry.rs
@@ -19,7 +19,7 @@ use std::ptr;
19
#[allow(deprecated)]
20
use std::sync::atomic::ATOMIC_USIZE_INIT;
21
use std::sync::atomic::{AtomicUsize, Ordering};
22
-use std::sync::{Arc, Once, ONCE_INIT};
+use std::sync::{Arc, Once};
23
use std::thread;
24
use std::usize;
25
use unwind;
@@ -161,7 +161,7 @@ pub(super) struct Registry {
161
/// Initialization
162
163
static mut THE_REGISTRY: Option<&'static Arc<Registry>> = None;
164
-static THE_REGISTRY_SET: Once = ONCE_INIT;
+static THE_REGISTRY_SET: Once = Once::new();
165
166
/// Starts the worker threads (if that has not already happened). If
167
/// initialization has not already occurred, use the default
0 commit comments