Skip to content

Commit 6bfa8c7

Browse files
committed
refactor(tree): Make variable names consistent
1 parent 7290e2e commit 6bfa8c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/ops/tree/graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ impl<'a> Graph<'a> {
205205
pub fn invert(&mut self) {
206206
let mut new_edges = vec![Edges::new(); self.edges.len()];
207207
for (from_idx, node_edges) in self.edges.iter().enumerate() {
208-
for (kind, edges) in &node_edges.0 {
209-
for edge_idx in edges {
210-
new_edges[*edge_idx].add_edge(*kind, from_idx);
208+
for (edge_kind, edge_indexes) in &node_edges.0 {
209+
for edge_index in edge_indexes {
210+
new_edges[*edge_index].add_edge(*edge_kind, from_idx);
211211
}
212212
}
213213
}

0 commit comments

Comments
 (0)