Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristramg committed May 21, 2024
1 parent efeed19 commit a63bb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osm4routing/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl Reader {
for edge in edges.iter() {
// Extremities of a way in `count_nodes_uses` are counted twice to avoid pruning deadends.
// We want to look at nodes with at two extremities, hence 4 uses
if self.nodes.get(&edge.source).is_none() {
if !self.nodes.contains_key(&edge.source) {
println!("Problem with node {}, edge {}", &edge.source.0, edge.id);
}
if self.nodes.get(&edge.source).unwrap().uses == 4 {
Expand Down

0 comments on commit a63bb3d

Please sign in to comment.