Skip to content

Commit 6a57931

Browse files
committed
Remove trailing commas from matches!
Old versions of rust don't allow trailing commas for this macro. It's introduced in this pull request: <rust-lang/rust#74880>.
1 parent 7064056 commit 6a57931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pcl/structure/graph.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ mod tests {
510510
graph.add_edges(edges.iter().copied());
511511
assert!(matches!(
512512
Tree::try_from(graph.clone()),
513-
Err(TreeTryFromError::NotConnected),
513+
Err(TreeTryFromError::NotConnected)
514514
));
515515

516516
graph.add_edge((0, 1));
@@ -523,7 +523,7 @@ mod tests {
523523
graph.add_edge((1, 2));
524524
assert!(matches!(
525525
Tree::try_from(graph),
526-
Err(TreeTryFromError::HasCycle),
526+
Err(TreeTryFromError::HasCycle)
527527
));
528528
}
529529

0 commit comments

Comments
 (0)