redact: drop needless mut
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9bd6936ea6
commit
2d9e959c56
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue