1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints (unneeded parens)

This commit is contained in:
Roy Ivy III 2019-12-26 16:59:34 -06:00
parent 1216378c72
commit bf6368269c
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ const MODE_RW_UGO: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_
#[inline(always)]
fn makedev(maj: u64, min: u64) -> dev_t {
// pick up from <sys/sysmacros.h>
((min & 0xff) | ((maj & 0xfff) << 8) | (((min & !0xff)) << 12) | (((maj & !0xfff)) << 32))
((min & 0xff) | ((maj & 0xfff) << 8) | ((min & !0xff) << 12) | ((maj & !0xfff) << 32))
as dev_t
}

View file

@ -370,7 +370,7 @@ fn path(path: &[u8], cond: PathCondition) -> bool {
} else if gid == metadata.gid() {
metadata.mode() & ((p as u32) << 3) != 0
} else {
metadata.mode() & ((p as u32)) != 0
metadata.mode() & (p as u32) != 0
}
};