about summary refs log tree commit diff
path: root/library/stdarch/examples/wasm.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/examples/wasm.rs
parente0533a30d38d64d2a3f8449c5dc93fa3ead7afe6 (diff)
downloadrust-f14b74631908897066f63d08a31e2567b4dfb64b.tar.gz
rust-f14b74631908897066f63d08a31e2567b4dfb64b.zip
Replace all max/min_value() with MAX/MIN
Diffstat (limited to 'library/stdarch/examples/wasm.rs')
-rw-r--r--library/stdarch/examples/wasm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/examples/wasm.rs b/library/stdarch/examples/wasm.rs
index e6006df06ec..53f9c55d4e4 100644
--- a/library/stdarch/examples/wasm.rs
+++ b/library/stdarch/examples/wasm.rs
@@ -23,7 +23,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
     let ret = memory_grow(0, 1);
 
     // if we failed to allocate a page then return null
-    if ret == usize::max_value() {
+    if ret == usize::MAX {
         return ptr::null_mut();
     }