mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-15 00:55:04 +01:00
add .then_ignore(end())
This commit is contained in:
parent
1ce753c1a9
commit
514c626ca3
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ fn file_parser<'src>(
|
|||
) -> impl Parser<Token<'src>, File, Error = Error<'src>> + Clone {
|
||||
item_parser()
|
||||
.repeated()
|
||||
.then_ignore(end())
|
||||
.map(move |items| File {
|
||||
name: file_name.clone(),
|
||||
items,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue