Compare commits
1 Commits
b0e1983d1f
...
769937bf97
| Author | SHA1 | Date | |
|---|---|---|---|
| 769937bf97 |
@ -48,9 +48,6 @@ impl<'a> Parser<'a> {
|
|||||||
let mut input = input;
|
let mut input = input;
|
||||||
let mut iter = a.iter().copied();
|
let mut iter = a.iter().copied();
|
||||||
while let Some(parser_idx) = iter.next() {
|
while let Some(parser_idx) = iter.next() {
|
||||||
if input.is_empty() {
|
|
||||||
return None;
|
|
||||||
}
|
|
||||||
input = parsers
|
input = parsers
|
||||||
.get(&parser_idx)
|
.get(&parser_idx)
|
||||||
.and_then(|p| p.parse(parsers, input))?;
|
.and_then(|p| p.parse(parsers, input))?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user