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();
|
self.advance_begin();
|
||||||
let mut lex: Option<Lex> = None;
|
match token {
|
||||||
if let Some(token) = token {
|
Some(t) => Some(Lex::new(t)),
|
||||||
lex = Some(Lex::new(token));
|
None => None,
|
||||||
}
|
}
|
||||||
lex
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue