Remove const workaround in std_detect cache
This commit is contained in:
parent
e51ee17aa7
commit
eb13680d1a
1 changed files with 1 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue