Skip to content

Commit c565717

Browse files
committed
Cargo format
1 parent dcb6f5b commit c565717

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

src/ast/spans.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -851,20 +851,21 @@ impl Spanned for Delete {
851851

852852
union_spans(
853853
core::iter::once(delete_token.0.span).chain(
854-
tables
855-
.iter()
856-
.map(|i| i.span())
857-
.chain(core::iter::once(from.span()))
858-
.chain(
859-
using
860-
.iter()
861-
.map(|u| union_spans(u.iter().map(|i| i.span()))),
862-
)
863-
.chain(selection.iter().map(|i| i.span()))
864-
.chain(returning.iter().flat_map(|i| i.iter().map(|k| k.span())))
865-
.chain(order_by.iter().map(|i| i.span()))
866-
.chain(limit.iter().map(|i| i.span())),
867-
))
854+
tables
855+
.iter()
856+
.map(|i| i.span())
857+
.chain(core::iter::once(from.span()))
858+
.chain(
859+
using
860+
.iter()
861+
.map(|u| union_spans(u.iter().map(|i| i.span()))),
862+
)
863+
.chain(selection.iter().map(|i| i.span()))
864+
.chain(returning.iter().flat_map(|i| i.iter().map(|k| k.span())))
865+
.chain(order_by.iter().map(|i| i.span()))
866+
.chain(limit.iter().map(|i| i.span())),
867+
),
868+
)
868869
}
869870
}
870871

src/parser/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11817,7 +11817,10 @@ impl<'a> Parser<'a> {
1181711817
/// Parse a DELETE statement, returning a `Box`ed SetExpr
1181811818
///
1181911819
/// This is used to reduce the size of the stack frames in debug builds
11820-
fn parse_delete_setexpr_boxed(&mut self, delete_token: TokenWithSpan) -> Result<Box<SetExpr>, ParserError> {
11820+
fn parse_delete_setexpr_boxed(
11821+
&mut self,
11822+
delete_token: TokenWithSpan,
11823+
) -> Result<Box<SetExpr>, ParserError> {
1182111824
Ok(Box::new(SetExpr::Delete(self.parse_delete(delete_token)?)))
1182211825
}
1182311826

@@ -15471,7 +15474,10 @@ impl<'a> Parser<'a> {
1547115474
}
1547215475

1547315476
/// Parse an REPLACE statement
15474-
pub fn parse_replace(&mut self, replace_token: TokenWithSpan) -> Result<Statement, ParserError> {
15477+
pub fn parse_replace(
15478+
&mut self,
15479+
replace_token: TokenWithSpan,
15480+
) -> Result<Statement, ParserError> {
1547515481
if !dialect_of!(self is MySqlDialect | GenericDialect) {
1547615482
return parser_err!(
1547715483
"Unsupported statement REPLACE",
@@ -15490,7 +15496,10 @@ impl<'a> Parser<'a> {
1549015496
/// Parse an INSERT statement, returning a `Box`ed SetExpr
1549115497
///
1549215498
/// This is used to reduce the size of the stack frames in debug builds
15493-
fn parse_insert_setexpr_boxed(&mut self, insert_token: TokenWithSpan) -> Result<Box<SetExpr>, ParserError> {
15499+
fn parse_insert_setexpr_boxed(
15500+
&mut self,
15501+
insert_token: TokenWithSpan,
15502+
) -> Result<Box<SetExpr>, ParserError> {
1549415503
Ok(Box::new(SetExpr::Insert(self.parse_insert(insert_token)?)))
1549515504
}
1549615505

0 commit comments

Comments
 (0)