@@ -25,12 +25,15 @@ use serde::{Deserialize, Serialize};
2525use sqlparser_derive:: { Visit , VisitMut } ;
2626
2727use crate :: {
28- ast:: { display_separated} ,
29- display_utils:: { Indent , SpaceOrNewline , indented_list } ,
28+ ast:: display_separated,
29+ display_utils:: { indented_list , Indent , SpaceOrNewline } ,
3030} ;
3131
3232use super :: {
33- Assignment , Expr , FromTable , Ident , InsertAliases , MysqlInsertPriority , ObjectName , OnInsert , OptimizerHint , OrderByExpr , Query , SelectInto , SelectItem , Setting , SqliteOnConflict , TableFactor , TableObject , TableWithJoins , UpdateTableFromKind , Values , display_comma_separated, helpers:: attached_token:: AttachedToken , query:: InputFormatClause
33+ display_comma_separated, helpers:: attached_token:: AttachedToken , query:: InputFormatClause ,
34+ Assignment , Expr , FromTable , Ident , InsertAliases , MysqlInsertPriority , ObjectName , OnInsert ,
35+ OptimizerHint , OrderByExpr , Query , SelectInto , SelectItem , Setting , SqliteOnConflict ,
36+ TableFactor , TableObject , TableWithJoins , UpdateTableFromKind , Values ,
3437} ;
3538
3639/// INSERT statement.
@@ -117,7 +120,8 @@ impl Display for Insert {
117120 "REPLACE"
118121 } else {
119122 "INSERT"
120- } ) ?;
123+ }
124+ ) ?;
121125 if let Some ( hint) = self . optimizer_hint . as_ref ( ) {
122126 write ! ( f, " {hint}" ) ?;
123127 }
@@ -375,9 +379,12 @@ impl Display for Merge {
375379 if self . into {
376380 write ! ( f, " INTO" ) ?;
377381 }
378- write ! ( f, " {table} USING {source} " ,
382+ write ! (
383+ f,
384+ " {table} USING {source} " ,
379385 table = self . table,
380- source = self . source) ?;
386+ source = self . source
387+ ) ?;
381388 write ! ( f, "ON {on} " , on = self . on) ?;
382389 write ! ( f, "{}" , display_separated( & self . clauses, " " ) ) ?;
383390 if let Some ( ref output) = self . output {
0 commit comments