Skip to content

Commit

Permalink
Remove trailing commas from matches!
Browse files Browse the repository at this point in the history
Old versions of rust don't allow trailing commas for this macro.
It's introduced in this pull request:
    <rust-lang/rust#74880>.
  • Loading branch information
statiolake committed Apr 27, 2021
1 parent 7064056 commit 6a57931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pcl/structure/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -523,7 +523,7 @@ mod tests {
graph.add_edge((1, 2));
assert!(matches!(
Tree::try_from(graph),
Err(TreeTryFromError::HasCycle),
Err(TreeTryFromError::HasCycle)
));
}

Expand Down

0 comments on commit 6a57931

Please sign in to comment.