From 27a0cfba1665f8032578e71107ba40b8c2d0b5be Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 29 Jun 2024 23:08:11 -0700 Subject: [PATCH] Silence some clippy warnings --- src/diff/dijkstra.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/diff/dijkstra.rs b/src/diff/dijkstra.rs index d9f1ba7afe..9fb5f6d659 100644 --- a/src/diff/dijkstra.rs +++ b/src/diff/dijkstra.rs @@ -320,7 +320,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap(); @@ -362,7 +362,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap(); @@ -408,7 +408,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap(); @@ -449,7 +449,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap(); @@ -481,7 +481,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap(); @@ -521,7 +521,7 @@ mod tests { )]; init_all_info(&lhs, &rhs); - let start = Vertex::new(lhs.get(0).copied(), rhs.get(0).copied()); + let start = Vertex::new(lhs.first().copied(), rhs.first().copied()); let vertex_arena = Bump::new(); let route = shortest_path(start, &vertex_arena, 0, DEFAULT_GRAPH_LIMIT).unwrap();