Skip to content

Commit 8e73ce6

Browse files
author
Roman Borschel
committed
Address linter error.
1 parent 84aea6f commit 8e73ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokenizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ impl<'a> Tokenizer<'a> {
12801280
s += word.as_str();
12811281
return Ok(Some(Token::make_word(s.as_str(), None)));
12821282
}
1283-
} else if prev_token.map_or(false, |t| t == &Token::Period) {
1283+
} else if prev_token == Some(&Token::Period) {
12841284
// If the previous token was a period, thus not belonging to a number,
12851285
// the value we have is part of an identifier.
12861286
return Ok(Some(Token::make_word(s.as_str(), None)));

0 commit comments

Comments
 (0)