diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 4d27d70..6d2d840 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -200,6 +200,7 @@ fn skip_till<'a, O>( ) -> impl FnMut(&'a str) -> ParseResult<'a, (&'a str, O)> { enum Next { IsEnd(O), + #[allow(dead_code)] NotEnd(char), } let mut next = alt((map(end, Next::IsEnd), map(anychar, Next::NotEnd))); diff --git a/rewriter/src/parser.rs b/rewriter/src/parser.rs index 29ebd65..3608067 100644 --- a/rewriter/src/parser.rs +++ b/rewriter/src/parser.rs @@ -194,6 +194,7 @@ fn skip_till<'a, O>( ) -> impl FnMut(&'a str) -> ParseResult<'a, (&'a str, O)> { enum Next { IsEnd(O), + #[allow(dead_code)] NotEnd(char), } let mut next = alt((map(end, Next::IsEnd), map(anychar, Next::NotEnd)));