We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
u32::MAX
u32::max_value
1 parent be2637a commit cbcf387Copy full SHA for cbcf387
library/std/src/sys/unix/ext/ucred.rs
@@ -42,7 +42,7 @@ pub mod impl_linux {
42
43
// Trivial sanity checks.
44
assert!(mem::size_of::<u32>() <= mem::size_of::<usize>());
45
- assert!(ucred_size <= u32::max_value() as usize);
+ assert!(ucred_size <= u32::MAX as usize);
46
47
let mut ucred_size = ucred_size as u32;
48
let mut ucred: ucred = ucred { pid: 1, uid: 1, gid: 1 };
0 commit comments