Skip to content

Commit 532bdba

Browse files
committed
Prefer "peek" over "consume/rewind" token
1 parent 16b764e commit 532bdba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/parser/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14034,10 +14034,9 @@ impl<'a> Parser<'a> {
1403414034

1403514035
let connect_by = if self.dialect.supports_connect_by()
1403614036
&& self
14037-
.parse_one_of_keywords(&[Keyword::START, Keyword::CONNECT])
14037+
.peek_one_of_keywords(&[Keyword::START, Keyword::CONNECT])
1403814038
.is_some()
1403914039
{
14040-
self.prev_token();
1404114040
Some(self.parse_connect_by()?)
1404214041
} else {
1404314042
None

0 commit comments

Comments
 (0)