From 5d2f71454cb1991b04236bff2124c36a7bc3ef64 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 10 Apr 2026 12:45:13 +0900 Subject: [PATCH] ls: drop #[allow(clippy::needless_bool)] --- src/uu/ls/src/config.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uu/ls/src/config.rs b/src/uu/ls/src/config.rs index cf8c084c6..2cc87c788 100644 --- a/src/uu/ls/src/config.rs +++ b/src/uu/ls/src/config.rs @@ -788,13 +788,10 @@ impl Config { }; let width = parse_width(options.get_one::(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);