Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed May 9, 2023
1 parent 2125fa2 commit 777fec2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,6 @@ impl PyGraph {
let mut tmp_nodes: Vec<NodeIndex> =
Vec::with_capacity(node_bound_1 + 1 - nodes_lst.len());

let second_last_node_idx: usize = nodes_lst
.get_item(nodes_lst.len() - 2)
.unwrap()
.downcast::<PyTuple>()
.unwrap()
.get_item(0)
.unwrap()
.downcast::<PyLong>()
.unwrap()
.extract()
.unwrap();

for i in 0..nodes_lst.len() + 1 {
if i < next_node_idx {
// node does not exist
Expand Down

0 comments on commit 777fec2

Please sign in to comment.