refactor(parser): Remove redundant closure

This commit is contained in:
Ed Page 2024-11-14 13:36:43 -06:00
parent 5772a6849e
commit 93f7788aa8

View File

@ -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 {