web search done right
explicitly mark as unreachable
Mikkel Denkerde3239716f93
diff --git a/crates/tantivy/src/query/grammar/infallible.rs b/crates/tantivy/src/query/grammar/infallible.rsindex 043b42e1..cde7f736 100644--- a/crates/tantivy/src/query/grammar/infallible.rs+++ b/crates/tantivy/src/query/grammar/infallible.rs@@ -110,9 +110,11 @@ whereF: nom::Parser<I, (O, ErrorList), Infallible>,{use nom::Err;+ #[allow(unreachable_patterns)]move |input: I| match f.parse(input) {Ok((input, (output, _err))) => Ok((input, output)),Err(Err::Incomplete(needed)) => Err(Err::Incomplete(needed)),+ Err(Err::Error(_)) | Err(Err::Failure(_)) => unreachable!(),}}