ls: drop #[allow(clippy::needless_bool)]

This commit is contained in:
oech3
2026-04-10 12:45:13 +09:00
committed by Daniel Hofstetter
parent 0d58e05149
commit 5d2f71454c
+1 -4
View File
@@ -788,13 +788,10 @@ impl Config {
};
let width = parse_width(options.get_one::<String>(options::WIDTH))?;
#[allow(clippy::needless_bool)]
let mut show_control = if options.get_flag(options::HIDE_CONTROL_CHARS) {
false
} else if options.get_flag(options::SHOW_CONTROL_CHARS) {
true
} else {
!stdout().is_terminal()
options.get_flag(options::SHOW_CONTROL_CHARS) || !stdout().is_terminal()
};
let (mut quoting_style, mut locale_quoting) = extract_quoting_style(options, show_control);