From 2739d1af0470df9e4ea3bd36f71d48afdb864f0d Mon Sep 17 00:00:00 2001 From: Christian Dassy <18606875+inxbit@users.noreply.github.com> Date: Tue, 17 Nov 2026 00:19:13 -0500 Subject: [PATCH] Unblock CI for clippy 1.100 and RUSTSEC-2026-0486 Clippy 1.100 adds a needless_bool check for an if guard followed by a bool literal; collapse looks_like_prompt_echo_prefix's tail to a negated matches!. Bump rustix 1.1.4 -> 1.1.6 (dev-only, via tempfile) to clear the unsound xattr advisory that cargo audit --deny warnings now rejects. --- Cargo.lock | 4 ++-- src/highlight.rs | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3565b70..6039c4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -682,9 +682,9 @@ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags 2.11.1", "errno", diff --git a/src/highlight.rs b/src/highlight.rs index 728caa6..1b9ce79 100644 --- a/src/highlight.rs +++ b/src/highlight.rs @@ -2351,11 +2351,7 @@ fn looks_like_prompt_echo_prefix(line: &[u8]) -> bool { } let trimmed = trim_ascii_whitespace_end(line); - if matches!(trimmed, b">" | b"#") { - return false; - } - - true + !matches!(trimmed, b">" | b"#") } fn redraws_interactive_prompt_line(line: &[u8]) -> bool {