mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
parser: fix clippy warning
This commit is contained in:
parent
b6a15956a0
commit
ee73116c7d
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user