Assert on errors
This commit is contained in:
parent
606f2853a9
commit
575ebceb7c
1 changed files with 3 additions and 0 deletions
|
@ -409,6 +409,9 @@ impl Iterator for Lexer {
|
||||||
token = result.ok().unwrap();
|
token = result.ok().unwrap();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if result.is_err() {
|
||||||
|
assert!(false, "{}", result.err().unwrap());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
self.advance_begin();
|
self.advance_begin();
|
||||||
match token {
|
match token {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue