redact: drop needless mut

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Eureka 2026-11-11 14:03:14 +00:00
commit 2d9e959c56

View file

@ -979,7 +979,7 @@ pub(crate) fn redact_url_userinfo(text: &str) -> String {
fn redact_schemeless(text: &str) -> String {
let mut out = String::with_capacity(text.len());
let mut word = String::new();
let mut flush = |word: &mut String, out: &mut String| {
let flush = |word: &mut String, out: &mut String| {
out.push_str(&redact_word(word));
word.clear();
};