about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/std_detect')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/cache.rs3
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]