Skip to content

Commit 6f90043

Browse files
committed
fix linter warning on match bool
1 parent 2ae5799 commit 6f90043

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/uu/ls/src/ls.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,12 +1087,13 @@ impl Config {
10871087
Dereference::DirArgs
10881088
};
10891089

1090-
let tab_size = match needs_color {
1091-
false => options
1090+
let tab_size = if !needs_color {
1091+
options
10921092
.get_one::<String>(options::format::TAB_SIZE)
10931093
.and_then(|size| size.parse::<usize>().ok())
1094-
.or_else(|| std::env::var("TABSIZE").ok().and_then(|s| s.parse().ok())),
1095-
_ => Some(0),
1094+
.or_else(|| std::env::var("TABSIZE").ok().and_then(|s| s.parse().ok()))
1095+
} else {
1096+
Some(0)
10961097
}
10971098
.unwrap_or(SPACES_IN_TAB);
10981099

0 commit comments

Comments
 (0)