From 9f79db287bb6323de4b0eec7d670ffb6aa9da674 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 24 Apr 2021 09:55:24 +0200 Subject: [PATCH] Update src/uu/ls/src/ls.rs Co-authored-by: Sylvestre Ledru --- src/uu/ls/src/ls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 19097edda..11d8b261f 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -1185,7 +1185,7 @@ fn sort_entries(entries: &mut Vec, 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 {