Remove const workaround in std_detect cache

This commit is contained in:
gnzlbg 2019-02-05 08:22:18 +01:00 committed by gnzlbg
parent e51ee17aa7
commit eb13680d1a

View file

@ -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]