Skip to content

Commit cbcf387

Browse files
joechrisellistesuji
authored and
Joe Ellis
committed
Use u32::MAX instead of u32::max_value
Co-authored-by: lzutao <[email protected]>
1 parent be2637a commit cbcf387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/ext/ucred.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub mod impl_linux {
4242

4343
// Trivial sanity checks.
4444
assert!(mem::size_of::<u32>() <= mem::size_of::<usize>());
45-
assert!(ucred_size <= u32::max_value() as usize);
45+
assert!(ucred_size <= u32::MAX as usize);
4646

4747
let mut ucred_size = ucred_size as u32;
4848
let mut ucred: ucred = ucred { pid: 1, uid: 1, gid: 1 };

0 commit comments

Comments
 (0)