Skip to content

Commit 7ca0e4b

Browse files
fix: remove unused field to eliminate clippy warning
Co-authored-by: samueltardieu <44656+samueltardieu@users.noreply.github.com>
1 parent 405c4d7 commit 7ca0e4b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/graph_guide_examples.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ fn test_unweighted_bfs_example() {
286286
fn test_spatial_graph_example() {
287287
#[derive(Debug, Clone)]
288288
struct Location {
289-
id: u32,
290289
x: f64,
291290
y: f64,
292291
}
@@ -315,7 +314,7 @@ fn test_spatial_graph_example() {
315314
}
316315

317316
fn add_location(&mut self, id: u32, x: f64, y: f64) {
318-
self.locations.insert(id, Location { id, x, y });
317+
self.locations.insert(id, Location { x, y });
319318
}
320319

321320
fn add_edge(&mut self, from: u32, to: u32, cost: u32) {

0 commit comments

Comments
 (0)