From 6a5793197adc5e080978415d4f0c39cc4b3da999 Mon Sep 17 00:00:00 2001 From: statiolake Date: Tue, 27 Apr 2021 21:49:34 +0900 Subject: [PATCH] Remove trailing commas from `matches!` Old versions of rust don't allow trailing commas for this macro. It's introduced in this pull request: . --- src/pcl/structure/graph.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcl/structure/graph.rs b/src/pcl/structure/graph.rs index 4b451ec..596a6e9 100644 --- a/src/pcl/structure/graph.rs +++ b/src/pcl/structure/graph.rs @@ -510,7 +510,7 @@ mod tests { graph.add_edges(edges.iter().copied()); assert!(matches!( Tree::try_from(graph.clone()), - Err(TreeTryFromError::NotConnected), + Err(TreeTryFromError::NotConnected) )); graph.add_edge((0, 1)); @@ -523,7 +523,7 @@ mod tests { graph.add_edge((1, 2)); assert!(matches!( Tree::try_from(graph), - Err(TreeTryFromError::HasCycle), + Err(TreeTryFromError::HasCycle) )); }