Skip to content

Commit

Permalink
fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKl committed Nov 15, 2023
1 parent fb934b6 commit 9d15bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manipulator/collapse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Collapse {
hypernode_map.insert(m, name);
let node_name = graph
.get_node_annos()
.get_value_for_item(&m, &NODE_NAME_KEY)?
.get_value_for_item(m, &NODE_NAME_KEY)?
.unwrap();
update.add_event(UpdateEvent::DeleteNode {
node_name: node_name.to_string(),
Expand Down Expand Up @@ -163,8 +163,8 @@ impl Collapse {
let random_node = hyperedge.iter().last().unwrap();
let target_node_name = hypernode_map.get(random_node).unwrap();
for node_id in hyperedge {
self.transfer_node_annos(node_id, &target_node_name, graph, update)?;
self.reconnect_components(node_id, &target_node_name, hypernode_map, graph, update)?;
self.transfer_node_annos(node_id, target_node_name, graph, update)?;
self.reconnect_components(node_id, target_node_name, hypernode_map, graph, update)?;
}
Ok(())
}
Expand Down

0 comments on commit 9d15bb4

Please sign in to comment.