Skip to content

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebpuetz committed May 29, 2019
1 parent 7af7b4b commit f5b6dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ impl<'a> DepGraphMut<'a> {
{
Some(edge) => {
let head = edge.source().index();
let weight = self.inner.remove_edge(edge.id());
let edge_id = edge.id();
let weight = self.inner.remove_edge(edge_id);
Some(DepTriple::new(head, weight.unwrap().1, dependent))
}
None => None,
Expand Down

0 comments on commit f5b6dd6

Please sign in to comment.