diff --git a/rslib/src/error/search.rs b/rslib/src/error/search.rs index e0a751eed..9fb168fe6 100644 --- a/rslib/src/error/search.rs +++ b/rslib/src/error/search.rs @@ -34,7 +34,6 @@ pub enum SearchErrorKind { InvalidPositiveWholeNumber { provided: String, context: String }, InvalidNegativeWholeNumber { provided: String, context: String }, InvalidAnswerButton { provided: String, context: String }, - Regex(String), Other(Option), } @@ -96,9 +95,6 @@ impl SearchErrorKind { SearchErrorKind::InvalidPropOperator(ctx) => { tr.search_invalid_prop_operator(ctx.as_str()) } - SearchErrorKind::Regex(text) => { - format!("
`{}`
", text.replace('`', "'")).into() - } SearchErrorKind::Other(Some(info)) => info.into(), SearchErrorKind::Other(None) => tr.search_invalid_other(), SearchErrorKind::InvalidNumber { provided, context } => {