fix(users/tazjin): rustfmt code with non-default settings
rustfmt only sometimes detects path-based nested config files (probably some kind of race?), so my users folder uses a separate formatting check for rustfmt to avoid flaky CI. Enough flakes around already ... Change-Id: Ifd862f9974f071b3a256643dd8e56c019116156a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5242 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
8b8c98380e
commit
0d0b43ed88
16 changed files with 348 additions and 421 deletions
|
|
@ -106,15 +106,9 @@ impl<'a> Scanner<'a> {
|
|||
|
||||
// possible multi-character tokens
|
||||
'!' => self.add_if_next('=', TokenKind::BangEqual, TokenKind::Bang),
|
||||
'=' => {
|
||||
self.add_if_next('=', TokenKind::EqualEqual, TokenKind::Equal)
|
||||
}
|
||||
'=' => self.add_if_next('=', TokenKind::EqualEqual, TokenKind::Equal),
|
||||
'<' => self.add_if_next('=', TokenKind::LessEqual, TokenKind::Less),
|
||||
'>' => self.add_if_next(
|
||||
'=',
|
||||
TokenKind::GreaterEqual,
|
||||
TokenKind::Greater,
|
||||
),
|
||||
'>' => self.add_if_next('=', TokenKind::GreaterEqual, TokenKind::Greater),
|
||||
|
||||
'/' => {
|
||||
// support comments until EOL by discarding characters
|
||||
|
|
@ -234,8 +228,7 @@ impl<'a> Scanner<'a> {
|
|||
self.advance();
|
||||
}
|
||||
|
||||
let ident: String =
|
||||
self.source[self.start..self.current].iter().collect();
|
||||
let ident: String = self.source[self.start..self.current].iter().collect();
|
||||
|
||||
// Determine whether this is an identifier, or a keyword:
|
||||
let token_kind = match ident.as_str() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue