Skip to content

Commit

Permalink
Merge pull request #59 from danhandrea/fix-regex-error
Browse files Browse the repository at this point in the history
Remove reference to RegexError::__Nonexhaustive
  • Loading branch information
yavko authored Jul 7, 2023
2 parents 2102b86 + d189f51 commit b7318a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event_listener/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ fn check_for_regex_error(val: Result<Regex, RegexError>) -> Regex {
Err(RegexError::CompiledTooBig(size)) => {
panic!("The compiled regex size is too big ({size})")
}
Err(RegexError::__Nonexhaustive) => unreachable!(),
Err(_) => unreachable!(),
}
}

Expand All @@ -652,7 +652,7 @@ fn check_for_regex_set_error(val: Result<RegexSet, RegexError>) -> RegexSet {
Err(RegexError::CompiledTooBig(size)) => {
panic!("The compiled regex size is too big ({size})")
}
Err(RegexError::__Nonexhaustive) => unreachable!(),
Err(_) => unreachable!(),
}
}

Expand Down

0 comments on commit b7318a1

Please sign in to comment.