diff --git a/crossbeam-utils/src/sync/sharded_lock.rs b/crossbeam-utils/src/sync/sharded_lock.rs index e420a811b..60793940b 100644 --- a/crossbeam-utils/src/sync/sharded_lock.rs +++ b/crossbeam-utils/src/sync/sharded_lock.rs @@ -106,8 +106,7 @@ impl ShardedLock { write_guard: UnsafeCell::new(None), }) }) - .collect::>() - .into_boxed_slice(), + .collect::>(), value: UnsafeCell::new(value), } }