fix(rust): remove redundant String clones

This commit is contained in:
Will Lillis 2025-08-08 22:49:58 -04:00
parent 9f2dd2f377
commit 3d9f4d1bd3
2 changed files with 6 additions and 7 deletions

View file

@ -821,8 +821,7 @@ fn test_query_matches_with_many_overlapping_results() {
// .foo(bar(BAZ))
// .foo(bar(BAZ))
// ...
let mut source = "a".to_string();
source += &"\n .foo(bar(BAZ))".repeat(count);
let source = format!("a{}", "\n .foo(bar(BAZ))".repeat(count));
assert_query_matches(
&language,