Skip to content

Commit 5d2f714

Browse files
oech3cakebaker
authored andcommitted
ls: drop #[allow(clippy::needless_bool)]
1 parent 0d58e05 commit 5d2f714

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/uu/ls/src/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,13 +788,10 @@ impl Config {
788788
};
789789
let width = parse_width(options.get_one::<String>(options::WIDTH))?;
790790

791-
#[allow(clippy::needless_bool)]
792791
let mut show_control = if options.get_flag(options::HIDE_CONTROL_CHARS) {
793792
false
794-
} else if options.get_flag(options::SHOW_CONTROL_CHARS) {
795-
true
796793
} else {
797-
!stdout().is_terminal()
794+
options.get_flag(options::SHOW_CONTROL_CHARS) || !stdout().is_terminal()
798795
};
799796

800797
let (mut quoting_style, mut locale_quoting) = extract_quoting_style(options, show_control);

0 commit comments

Comments
 (0)