chore: clippy::useless-borrows-in-formatting fixes

This commit is contained in:
link2xt
2026-05-10 16:26:59 +02:00
committed by l
parent 8132f32e91
commit f2f2dd42ed
18 changed files with 37 additions and 52 deletions

View File

@@ -247,12 +247,12 @@ proptest! {
assert!(
l <= approx_chars + el_len,
"buf: '{}' - res: '{}' - len {}, approx {}",
&buf, &res, res.len(), approx_chars
buf, res, res.len(), approx_chars
);
if buf.chars().count() > approx_chars + el_len {
let l = res.len();
assert_eq!(&res[l-5..l], "[...]", "missing ellipsis in {}", &res);
assert_eq!(&res[l-5..l], "[...]", "missing ellipsis in {res}");
}
}
}