mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Clippy polish
This commit is contained in:
parent
8345c6cd79
commit
e02c360000
75 changed files with 361 additions and 419 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue