Clippy polish

This commit is contained in:
Tobias Hunger 2023-06-23 14:03:46 +02:00 committed by Tobias Hunger
parent 8345c6cd79
commit e02c360000
75 changed files with 361 additions and 419 deletions

View file

@ -208,7 +208,7 @@ fn fill_token_vec(stream: impl Iterator<Item = TokenTree>, vec: &mut Vec<parser:
let f = s.chars().next().unwrap();
let kind = if f == '"' {
SyntaxKind::StringLiteral
} else if f.is_digit(10) {
} else if f.is_ascii_digit() {
if let Some(last) = vec.last_mut() {
if (last.kind == SyntaxKind::ColorLiteral && last.text.len() == 1)
|| (last.kind == SyntaxKind::Identifier