mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
ls: drop #[allow(clippy::needless_bool)]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user