Skip to content

Commit

Permalink
Apply clippy::redundant_pattern_matching suggestions. (#32)
Browse files Browse the repository at this point in the history
Needed to unbreak CI w/ recent nightly.
  • Loading branch information
eddyb authored Jun 3, 2023
2 parents 8e848a4 + 7e0fb8d commit 4c07598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spv/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,13 +769,13 @@ impl Spec {

let next_seq = match o.quantifier {
_ if single == Some(id_result_type) => {
assert!(matches!(o.quantifier, None));
assert!(o.quantifier.is_none());
assert!(!def.has_result_type_id);
def.has_result_type_id = true;
Seq::IdResultType
}
_ if single == Some(id_result) => {
assert!(matches!(o.quantifier, None));
assert!(o.quantifier.is_none());
assert!(!def.has_result_id);
def.has_result_id = true;
Seq::IdResult
Expand Down

0 comments on commit 4c07598

Please sign in to comment.