Skip to content

Commit 249c82c

Browse files
committed
Cargo format
1 parent dd8796f commit 249c82c

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
@@ -849,20 +849,21 @@ impl Spanned for Delete {
849849

850850
union_spans(
851851
core::iter::once(delete_token.0.span).chain(
852-
tables
853-
.iter()
854-
.map(|i| i.span())
855-
.chain(core::iter::once(from.span()))
856-
.chain(
857-
using
858-
.iter()
859-
.map(|u| union_spans(u.iter().map(|i| i.span()))),
860-
)
861-
.chain(selection.iter().map(|i| i.span()))
862-
.chain(returning.iter().flat_map(|i| i.iter().map(|k| k.span())))
863-
.chain(order_by.iter().map(|i| i.span()))
864-
.chain(limit.iter().map(|i| i.span())),
865-
))
852+
tables
853+
.iter()
854+
.map(|i| i.span())
855+
.chain(core::iter::once(from.span()))
856+
.chain(
857+
using
858+
.iter()
859+
.map(|u| union_spans(u.iter().map(|i| i.span()))),
860+
)
861+
.chain(selection.iter().map(|i| i.span()))
862+
.chain(returning.iter().flat_map(|i| i.iter().map(|k| k.span())))
863+
.chain(order_by.iter().map(|i| i.span()))
864+
.chain(limit.iter().map(|i| i.span())),
865+
),
866+
)
866867
}
867868
}
868869

src/parser/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11812,7 +11812,10 @@ impl<'a> Parser<'a> {
1181211812
/// Parse a DELETE statement, returning a `Box`ed SetExpr
1181311813
///
1181411814
/// This is used to reduce the size of the stack frames in debug builds
11815-
fn parse_delete_setexpr_boxed(&mut self, delete_token: TokenWithSpan) -> Result<Box<SetExpr>, ParserError> {
11815+
fn parse_delete_setexpr_boxed(
11816+
&mut self,
11817+
delete_token: TokenWithSpan,
11818+
) -> Result<Box<SetExpr>, ParserError> {
1181611819
Ok(Box::new(SetExpr::Delete(self.parse_delete(delete_token)?)))
1181711820
}
1181811821

@@ -15451,7 +15454,10 @@ impl<'a> Parser<'a> {
1545115454
}
1545215455

1545315456
/// Parse an REPLACE statement
15454-
pub fn parse_replace(&mut self, replace_token: TokenWithSpan) -> Result<Statement, ParserError> {
15457+
pub fn parse_replace(
15458+
&mut self,
15459+
replace_token: TokenWithSpan,
15460+
) -> Result<Statement, ParserError> {
1545515461
if !dialect_of!(self is MySqlDialect | GenericDialect) {
1545615462
return parser_err!(
1545715463
"Unsupported statement REPLACE",
@@ -15470,7 +15476,10 @@ impl<'a> Parser<'a> {
1547015476
/// Parse an INSERT statement, returning a `Box`ed SetExpr
1547115477
///
1547215478
/// This is used to reduce the size of the stack frames in debug builds
15473-
fn parse_insert_setexpr_boxed(&mut self, insert_token: TokenWithSpan) -> Result<Box<SetExpr>, ParserError> {
15479+
fn parse_insert_setexpr_boxed(
15480+
&mut self,
15481+
insert_token: TokenWithSpan,
15482+
) -> Result<Box<SetExpr>, ParserError> {
1547415483
Ok(Box::new(SetExpr::Insert(self.parse_insert(insert_token)?)))
1547515484
}
1547615485

0 commit comments

Comments
 (0)