From f3e43e932f52d70d5b782baea7adf2e7c16ce0b9 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 20 Apr 2026 02:23:02 +0100 Subject: [PATCH] clippy: fix byte_char_slices lint https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices Part of #12658 --- crates/common/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/common/src/lib.rs b/crates/common/src/lib.rs index bec3d2818..c1df7e530 100644 --- a/crates/common/src/lib.rs +++ b/crates/common/src/lib.rs @@ -398,7 +398,7 @@ fn escape_string_url(input: &wstr) -> WString { for byte in narrow { if (byte & 0x80) == 0 { let c = char::from_u32(u32::from(byte)).unwrap(); - if c.is_alphanumeric() || [b'/', b'.', b'~', b'-', b'_'].contains(&byte) { + if c.is_alphanumeric() || b"/.~-_".contains(&byte) { // The above characters don't need to be encoded. out.push(c); continue;