Skip to content

Commit

Permalink
Update deprecated rust range patterns and clippy config (#450)
Browse files Browse the repository at this point in the history
- Fix warning: `...` range patterns are deprecated
- Update deprecated cyclomatic-complexity-threshold to cognitive-complexity-threshold
  • Loading branch information
light4 authored and casey committed Jun 7, 2019
1 parent 23443e2 commit a455624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cyclomatic-complexity-threshold = 1337
cognitive-complexity-threshold = 1337

doc-valid-idents = ["FreeBSD"]
2 changes: 1 addition & 1 deletion src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a455624

Please sign in to comment.