Skip to content

Commit

Permalink
Fix clippy error with new Rust 1.65 release (#725)
Browse files Browse the repository at this point in the history
Rust 1.65 was recently released which added some new clippy rules. This
commit fixes the failure reported when running clippy with 1.65. This
would have caused a CI failure as we start using the new rust version
in CI.
  • Loading branch information
mtreinish committed Nov 4, 2022
1 parent d91f488 commit 9ce8d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shortest_path/num_shortest_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn num_shortest_paths_unweighted<Ty: EdgeType>(
source
)));
}
let mut bfs = Bfs::new(&graph, node_index);
let mut bfs = Bfs::new(graph, node_index);
let mut distance: Vec<Option<usize>> = vec![None; graph.node_bound()];
distance[node_index.index()] = Some(0);
out_map[source] = 1.to_biguint().unwrap();
Expand Down

0 comments on commit 9ce8d4d

Please sign in to comment.