Clean up end of next()
This commit is contained in:
parent
953870fae0
commit
ea4758e442
1 changed files with 3 additions and 4 deletions
|
@ -167,11 +167,10 @@ impl Iterator for Lexer {
|
|||
}
|
||||
}
|
||||
self.advance_begin();
|
||||
let mut lex: Option<Lex> = None;
|
||||
if let Some(token) = token {
|
||||
lex = Some(Lex::new(token));
|
||||
match token {
|
||||
Some(t) => Some(Lex::new(t)),
|
||||
None => None,
|
||||
}
|
||||
lex
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue