Skip to content

Commit

Permalink
Apply clippy::redundant_pattern_matching suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jun 3, 2023
1 parent 8e848a4 commit 7e0fb8d
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 7e0fb8d

Please sign in to comment.