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:
parent
1216378c72
commit
bf6368269c
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ const MODE_RW_UGO: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn makedev(maj: u64, min: u64) -> dev_t {
|
fn makedev(maj: u64, min: u64) -> dev_t {
|
||||||
// pick up from <sys/sysmacros.h>
|
// 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
|
as dev_t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -370,7 +370,7 @@ fn path(path: &[u8], cond: PathCondition) -> bool {
|
||||||
} else if gid == metadata.gid() {
|
} else if gid == metadata.gid() {
|
||||||
metadata.mode() & ((p as u32) << 3) != 0
|
metadata.mode() & ((p as u32) << 3) != 0
|
||||||
} else {
|
} else {
|
||||||
metadata.mode() & ((p as u32)) != 0
|
metadata.mode() & (p as u32) != 0
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue