diff --git a/src/event_listener/shared.rs b/src/event_listener/shared.rs index 0206dd2..d6eb1c0 100644 --- a/src/event_listener/shared.rs +++ b/src/event_listener/shared.rs @@ -641,7 +641,7 @@ fn check_for_regex_error(val: Result) -> Regex { Err(RegexError::CompiledTooBig(size)) => { panic!("The compiled regex size is too big ({size})") } - Err(RegexError::__Nonexhaustive) => unreachable!(), + Err(_) => unreachable!(), } } @@ -652,7 +652,7 @@ fn check_for_regex_set_error(val: Result) -> RegexSet { Err(RegexError::CompiledTooBig(size)) => { panic!("The compiled regex size is too big ({size})") } - Err(RegexError::__Nonexhaustive) => unreachable!(), + Err(_) => unreachable!(), } }