Skip to content

Commit c1d4cbe

Browse files
committed
cargo fmt
1 parent 5b79539 commit c1d4cbe

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
@@ -515,7 +515,7 @@ pub enum Statement {
515515
location: Option<String>,
516516
query: Option<Box<Query>>,
517517
without_rowid: bool,
518-
like: Option<ObjectName>
518+
like: Option<ObjectName>,
519519
},
520520
/// SQLite's `CREATE VIRTUAL TABLE .. USING <module_name> (<module_args>)`
521521
CreateVirtualTable {
@@ -818,7 +818,7 @@ impl fmt::Display for Statement {
818818
location,
819819
query,
820820
without_rowid,
821-
like
821+
like,
822822
} => {
823823
// We want to allow the following options
824824
// Empty column list, allowed by PostgreSQL:

src/parser.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ impl Parser {
11921192
location: Some(location),
11931193
query: None,
11941194
without_rowid: false,
1195-
like: None
1195+
like: None,
11961196
})
11971197
}
11981198

@@ -1340,7 +1340,9 @@ impl Parser {
13401340
let table_name = self.parse_object_name()?;
13411341
let like = if self.parse_keyword(Keyword::LIKE) {
13421342
self.parse_object_name().ok()
1343-
} else { None };
1343+
} else {
1344+
None
1345+
};
13441346
// parse optional column list (schema)
13451347
let (columns, constraints) = self.parse_columns()?;
13461348

@@ -1373,7 +1375,7 @@ impl Parser {
13731375
location: None,
13741376
query,
13751377
without_rowid,
1376-
like
1378+
like,
13771379
})
13781380
}
13791381

0 commit comments

Comments
 (0)