mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
refactor(parser): Remove redundant closure
This commit is contained in:
parent
5772a6849e
commit
93f7788aa8
@ -681,7 +681,7 @@ impl<'a> State<'a> {
|
||||
let (i, control) = alt((
|
||||
self.syntax.block_end.value(None),
|
||||
peek(delimited('%', alt(('-', '~', '+')).map(Some), '}')),
|
||||
|_| fail(i), // rollback on partial matches in the previous line
|
||||
fail, // rollback on partial matches in the previous line
|
||||
))
|
||||
.parse_next(i)?;
|
||||
if let Some(control) = control {
|
||||
|
Loading…
x
Reference in New Issue
Block a user