Skip to content

Commit 2bf5e59

Browse files
author
Sergey Bargamon
committed
remove needles borrow
1 parent 44ae7da commit 2bf5e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ fn replace(
313313
) -> Vec<(String, String)> {
314314
query
315315
.map(|p| {
316-
if is_hit(&p.0, &index) {
316+
if is_hit(&p.0, index) {
317317
(p.0.to_string(), config.replace_to.clone())
318318
} else {
319319
(p.0.to_string(), p.1.to_string())

0 commit comments

Comments
 (0)