Skip to content

Commit

Permalink
fix after clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ayman-sigma committed Dec 12, 2024
1 parent 4f92baa commit 0c01b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ impl<'a> Tokenizer<'a> {
{
s.push('.');
chars.next();
} else if s.is_empty() {
} else if !s.is_empty() {
// Number might be part of period separated construct. Keep the period for next token
// e.g. a-12.b
return Ok(Some(Token::Number(s, false)));
Expand Down

0 comments on commit 0c01b33

Please sign in to comment.