Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
naiquevin committed May 24, 2024
1 parent 5a6a007 commit d9749a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn pos_args_mapping(template: &str, udvars: &HashSet<String>) -> HashMap<Str
continue;
}
for var in capture_udvars(line, &re, udvars) {
if result.get(var).is_none() {
if !result.contains_key(var) {
result.insert(var.to_owned(), counter);
counter += 1;
}
Expand Down

0 comments on commit d9749a9

Please sign in to comment.