1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

ls: remove redundant parentheses

This commit is contained in:
Terts Diepraam 2021-04-24 10:47:36 +02:00
parent ce8c58b93e
commit 728f0bd61d

View file

@ -1161,7 +1161,7 @@ fn sort_entries(entries: &mut Vec<PathData>, config: &Config) {
fn is_hidden(file_path: &DirEntry) -> bool {
let metadata = fs::metadata(file_path.path()).unwrap();
let attr = metadata.file_attributes();
((attr & 0x2) > 0)
(attr & 0x2) > 0
}
fn should_display(entry: &DirEntry, config: &Config) -> bool {