From 77eddfcc8d4eb2c9bbd917bf445552cb5a26525b Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Wed, 30 Nov 2022 13:25:17 -0500 Subject: [PATCH] minor cleanup to avoid `is_ok()` (#740) --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index e72ad834..ff822b6a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> { let index_name = self.parse_object_name()?; self.expect_keyword(Keyword::ON)?; let table_name = self.parse_object_name()?; - let using = if self.expect_keyword(Keyword::USING).is_ok() { + let using = if self.parse_keyword(Keyword::USING) { Some(self.parse_identifier()?) } else { None