Update deprecated rust range patterns and clippy config (#450)
- Fix warning: `...` range patterns are deprecated - Update deprecated cyclomatic-complexity-threshold to cognitive-complexity-threshold
This commit is contained in:
parent
23443e2472
commit
a4556241de
@ -1,3 +1,3 @@
|
||||
cyclomatic-complexity-threshold = 1337
|
||||
cognitive-complexity-threshold = 1337
|
||||
|
||||
doc-valid-idents = ["FreeBSD"]
|
||||
|
@ -359,7 +359,7 @@ impl<'a> Lexer<'a> {
|
||||
' ' | '\t' => self.lex_whitespace(),
|
||||
'\'' => self.lex_raw_string(),
|
||||
'"' => self.lex_cooked_string(),
|
||||
'a'...'z' | 'A'...'Z' | '_' => self.lex_name(),
|
||||
'a'..='z' | 'A'..='Z' | '_' => self.lex_name(),
|
||||
_ => {
|
||||
self.advance()?;
|
||||
Err(self.error(UnknownStartOfToken))
|
||||
|
Loading…
Reference in New Issue
Block a user