From cbcf3877b528ff0304e3da6da03349c8a30beed5 Mon Sep 17 00:00:00 2001 From: Joe Ellis Date: Wed, 5 Aug 2020 15:47:45 +0100 Subject: [PATCH] Use `u32::MAX` instead of `u32::max_value` Co-authored-by: lzutao --- library/std/src/sys/unix/ext/ucred.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/unix/ext/ucred.rs b/library/std/src/sys/unix/ext/ucred.rs index c737a6a34fd..44df834e8d7 100644 --- a/library/std/src/sys/unix/ext/ucred.rs +++ b/library/std/src/sys/unix/ext/ucred.rs @@ -42,7 +42,7 @@ pub mod impl_linux { // Trivial sanity checks. assert!(mem::size_of::() <= mem::size_of::()); - assert!(ucred_size <= u32::max_value() as usize); + assert!(ucred_size <= u32::MAX as usize); let mut ucred_size = ucred_size as u32; let mut ucred: ucred = ucred { pid: 1, uid: 1, gid: 1 };