Skip to content

Commit

Permalink
this benches a little better
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Feb 23, 2024
1 parent 6bc6152 commit 92e5753
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ impl Pass {
input: text,
});

output.extend([&text[last_replacement..range.start], &repl]);
output.push_str(&text[last_replacement..range.start]);
output.push_str(&repl);

last_replacement = range.end;
}
Expand Down

0 comments on commit 92e5753

Please sign in to comment.