Skip to content

Commit

Permalink
Fix clippy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed Nov 27, 2024
1 parent 5fdb785 commit 83b9d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/weaver_forge/src/extensions/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub fn acronym(acronyms: Vec<String>) -> impl Fn(&str) -> String {
let input_matcher = input.to_lowercase();
for (matcher, replacement) in acronym_map.iter() {
for (idx, _) in input_matcher.match_indices(matcher) {
result.replace_range(idx..(idx + replacement.len()), &replacement);
result.replace_range(idx..(idx + replacement.len()), replacement);
}
}
result
Expand Down

0 comments on commit 83b9d0a

Please sign in to comment.