mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-12 23:55:21 +00:00
restore if expression
This commit is contained in:
parent
35eea0b8ec
commit
492f09298f
1 changed files with 4 additions and 3 deletions
|
@ -438,9 +438,10 @@ where
|
|||
fn take_number(&mut self, radix: u32) -> Option<char> {
|
||||
let take_char = Lexer::<T>::is_digit_of_radix(self.window[0], radix);
|
||||
|
||||
match take_char {
|
||||
true => Some(self.next_char().unwrap()),
|
||||
_ => None,
|
||||
if take_char {
|
||||
Some(self.next_char().unwrap())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue