Skip to content

Commit 2e2e9d7

Browse files
committed
Remove const workaround in std_detect cache
1 parent 6f06843 commit 2e2e9d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/std_detect/src/detect/cache.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ impl Cache {
8484
allow(clippy::declare_interior_mutable_const)
8585
)]
8686
const fn uninitialized() -> Self {
87-
const X: AtomicU64 = AtomicU64::new(u64::max_value());
88-
Cache(X)
87+
Cache(AtomicU64::new(u64::max_value()))
8988
}
9089
/// Is the cache uninitialized?
9190
#[inline]

0 commit comments

Comments
 (0)