From 384dca2d2089b66e28df65efbc3ed5836ace35c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Wed, 13 May 2026 10:58:47 +0200 Subject: [PATCH] Fix inconsistent local var name in test function --- src/testing/graph_topology_testing.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/testing/graph_topology_testing.rs b/src/testing/graph_topology_testing.rs index 60bc154..05595a4 100644 --- a/src/testing/graph_topology_testing.rs +++ b/src/testing/graph_topology_testing.rs @@ -473,21 +473,21 @@ macro_rules! graph_topology_tests { "unexpected incidence count for vertex {:?}", vertices[i] ); - let mut remaining = incidences[i].clone(); + let mut expected = incidences[i].clone(); for incidence in graph.incidences(vertices[i]) { - let pos = remaining + let pos = expected .iter() .position(|(v, e)| *v == incidence.0 && *e == incidence.1) .expect(&format!( "unexpected incidence {incidence:?} of vertex {:?} from the iterator", vertices[i] )); - remaining.swap_remove(pos); + expected.swap_remove(pos); } assert!( - remaining.is_empty(), + expected.is_empty(), "expected incidences {:?} of vertex {:?} were not matched by the iterator", - remaining, + expected, vertices[i] ); }