Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Jul 26, 2024
1 parent e014454 commit 345a634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manipulator/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl Rule {
.get_value_for_item(&m.node, &anno_key)?
.unwrap_or_default();
// replace all occurences of the value
let search = Regex::new(&search)?;
let search = Regex::new(search)?;

Ok(search.replace_all(&orig_val, replace).to_string())
}
Expand Down Expand Up @@ -297,7 +297,7 @@ impl<'a> MapperImpl<'a> {
node_name: match_node_name.to_string(),
anno_ns: rule.ns.to_string(),
anno_name: rule.name.to_string(),
anno_value: rule.resolve_value(&self.graph, &match_group)?,
anno_value: rule.resolve_value(self.graph, match_group)?,
})?;
}
Ok(())
Expand Down Expand Up @@ -340,7 +340,7 @@ impl<'a> MapperImpl<'a> {
node_name: new_node_name.clone(),
anno_ns: rule.ns.to_string(),
anno_name: rule.name.to_string(),
anno_value: rule.resolve_value(&self.graph, &match_group)?,
anno_value: rule.resolve_value(self.graph, match_group)?,
})?;

// Add the new node to the common parent
Expand Down

0 comments on commit 345a634

Please sign in to comment.