Skip to content

Commit da68baa

Browse files
committed
Align implementation style
1 parent bb6f542 commit da68baa

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

src/parser/mod.rs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17604,9 +17604,22 @@ impl<'a> Parser<'a> {
1760417604
/// Returns true if the immediate tokens look like the
1760517605
/// beginning of a subquery. `(SELECT ...`
1760617606
fn peek_subquery_start(&mut self) -> bool {
17607-
let [maybe_lparen, maybe_select] = self.peek_tokens_ref();
17608-
Token::LParen == maybe_lparen.token
17609-
&& matches!(&maybe_select.token, Token::Word(w) if w.keyword == Keyword::SELECT)
17607+
matches!(
17608+
self.peek_tokens_ref(),
17609+
[
17610+
TokenWithSpan {
17611+
token: Token::LParen,
17612+
..
17613+
},
17614+
TokenWithSpan {
17615+
token: Token::Word(Word {
17616+
keyword: Keyword::SELECT,
17617+
..
17618+
}),
17619+
..
17620+
},
17621+
]
17622+
)
1761017623
}
1761117624

1761217625
/// Returns true if the immediate tokens look like the

0 commit comments

Comments
 (0)