diff options
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/cache.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs index 944dccbe6df..1ab94dd1cd9 100644 --- a/library/stdarch/crates/std_detect/src/detect/cache.rs +++ b/library/stdarch/crates/std_detect/src/detect/cache.rs @@ -84,8 +84,7 @@ impl Cache { allow(clippy::declare_interior_mutable_const) )] const fn uninitialized() -> Self { - const X: AtomicU64 = AtomicU64::new(u64::max_value()); - Cache(X) + Cache(AtomicU64::new(u64::max_value())) } /// Is the cache uninitialized? #[inline] |
