diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-04-04 17:41:16 +0200 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2020-04-04 09:51:11 -0700 |
| commit | f14b74631908897066f63d08a31e2567b4dfb64b (patch) | |
| tree | f016cc98d3c772078f2e35b7fc4f0a7c965bfbe9 /library/stdarch/crates/std_detect/src/detect | |
| parent | e0533a30d38d64d2a3f8449c5dc93fa3ead7afe6 (diff) | |
| download | rust-f14b74631908897066f63d08a31e2567b4dfb64b.tar.gz rust-f14b74631908897066f63d08a31e2567b4dfb64b.zip | |
Replace all max/min_value() with MAX/MIN
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/cache.rs | 4 |
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? |
