Skip to content

Commit 12a44e3

Browse files
committed
cargo fmt
1 parent f9a2cb7 commit 12a44e3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/ast/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ pub enum Statement {
513513
location: Option<String>,
514514
query: Option<Box<Query>>,
515515
without_rowid: bool,
516-
like: Option<ObjectName>
516+
like: Option<ObjectName>,
517517
},
518518
/// SQLite's `CREATE VIRTUAL TABLE .. USING <module_name> (<module_args>)`
519519
CreateVirtualTable {
@@ -809,7 +809,7 @@ impl fmt::Display for Statement {
809809
location,
810810
query,
811811
without_rowid,
812-
like
812+
like,
813813
} => {
814814
// We want to allow the following options
815815
// Empty column list, allowed by PostgreSQL:

src/parser.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ impl Parser {
11831183
location: Some(location),
11841184
query: None,
11851185
without_rowid: false,
1186-
like: None
1186+
like: None,
11871187
})
11881188
}
11891189

@@ -1330,7 +1330,9 @@ impl Parser {
13301330
let table_name = self.parse_object_name()?;
13311331
let like = if self.parse_keyword(Keyword::LIKE) {
13321332
self.parse_object_name().ok()
1333-
} else { None };
1333+
} else {
1334+
None
1335+
};
13341336
// parse optional column list (schema)
13351337
let (columns, constraints) = self.parse_columns()?;
13361338

@@ -1362,7 +1364,7 @@ impl Parser {
13621364
location: None,
13631365
query,
13641366
without_rowid,
1365-
like
1367+
like,
13661368
})
13671369
}
13681370

0 commit comments

Comments
 (0)