Skip to content

Commit bdb151e

Browse files
committed
Prefer "peek" over "consume/rewind" token
1 parent 11ddcef commit bdb151e

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
@@ -14002,10 +14002,9 @@ impl<'a> Parser<'a> {
1400214002

1400314003
let connect_by = if self.dialect.supports_connect_by()
1400414004
&& self
14005-
.parse_one_of_keywords(&[Keyword::START, Keyword::CONNECT])
14005+
.peek_one_of_keywords(&[Keyword::START, Keyword::CONNECT])
1400614006
.is_some()
1400714007
{
14008-
self.prev_token();
1400914008
Some(self.parse_connect_by()?)
1401014009
} else {
1401114010
None

0 commit comments

Comments
 (0)