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.
WorkerThread
1 parent 1341ce3 commit 733e93bCopy full SHA for 733e93b
rayon-core/src/registry.rs
@@ -686,7 +686,7 @@ pub(super) struct WorkerThread {
686
// worker is fully unwound. Using an unsafe pointer avoids the need
687
// for a RefCell<T> etc.
688
thread_local! {
689
- static WORKER_THREAD_STATE: Cell<*const WorkerThread> = Cell::new(ptr::null());
+ static WORKER_THREAD_STATE: Cell<*const WorkerThread> = const { Cell::new(ptr::null()) };
690
}
691
692
impl From<ThreadBuilder> for WorkerThread {
0 commit comments