fix(rust): remove redundant String clones
This commit is contained in:
parent
9f2dd2f377
commit
3d9f4d1bd3
2 changed files with 6 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue