about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/src/detect/cache.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2020-04-04 17:41:16 +0200
committerDavid Tolnay <dtolnay@gmail.com>2020-04-04 09:51:11 -0700
commitf14b74631908897066f63d08a31e2567b4dfb64b (patch)
treef016cc98d3c772078f2e35b7fc4f0a7c965bfbe9 /library/stdarch/crates/std_detect/src/detect/cache.rs
parente0533a30d38d64d2a3f8449c5dc93fa3ead7afe6 (diff)
downloadrust-f14b74631908897066f63d08a31e2567b4dfb64b.tar.gz
rust-f14b74631908897066f63d08a31e2567b4dfb64b.zip
Replace all max/min_value() with MAX/MIN
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/cache.rs')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/cache.rs4
1 files changed, 2 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 a9123c27234..6bcbace4bbb 100644
--- a/library/stdarch/crates/std_detect/src/detect/cache.rs
+++ b/library/stdarch/crates/std_detect/src/detect/cache.rs
@@ -98,12 +98,12 @@ impl Cache {
     /// Creates an uninitialized cache.
     #[allow(clippy::declare_interior_mutable_const)]
     const fn uninitialized() -> Self {
-        Cache(AtomicUsize::new(usize::max_value()))
+        Cache(AtomicUsize::new(usize::MAX))
     }
     /// Is the cache uninitialized?
     #[inline]
     pub(crate) fn is_uninitialized(&self) -> bool {
-        self.0.load(Ordering::SeqCst) == usize::max_value()
+        self.0.load(Ordering::SeqCst) == usize::MAX
     }
 
     /// Is the `bit` in the cache set?