parser: fix clippy warning

This commit is contained in:
René Kijewski 2024-09-11 02:53:11 +02:00
parent b6a15956a0
commit ee73116c7d

View File

@ -312,7 +312,7 @@ fn skip_till<'a, 'b, O>(
}
}
fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'_> {
fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'a> {
move |i: &'a str| -> ParseResult<'a> {
let (j, v) = identifier(i)?;
if k == v { Ok((j, v)) } else { fail(i) }