@@ -332,7 +332,7 @@ pub enum Owner {
332332impl fmt:: Display for Owner {
333333 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
334334 match self {
335- Owner :: Ident ( ident) => write ! ( f, "{}" , ident ) ,
335+ Owner :: Ident ( ident) => write ! ( f, "{ident}" ) ,
336336 Owner :: CurrentRole => write ! ( f, "CURRENT_ROLE" ) ,
337337 Owner :: CurrentUser => write ! ( f, "CURRENT_USER" ) ,
338338 Owner :: SessionUser => write ! ( f, "SESSION_USER" ) ,
@@ -390,14 +390,14 @@ impl fmt::Display for AlterTableOperation {
390390 if * if_not_exists {
391391 write ! ( f, " IF NOT EXISTS" ) ?;
392392 }
393- write ! ( f, " {} ({})" , name , query )
393+ write ! ( f, " {name } ({query })" )
394394 }
395395 AlterTableOperation :: DropProjection { if_exists, name } => {
396396 write ! ( f, "DROP PROJECTION" ) ?;
397397 if * if_exists {
398398 write ! ( f, " IF EXISTS" ) ?;
399399 }
400- write ! ( f, " {}" , name )
400+ write ! ( f, " {name}" )
401401 }
402402 AlterTableOperation :: MaterializeProjection {
403403 if_exists,
@@ -408,9 +408,9 @@ impl fmt::Display for AlterTableOperation {
408408 if * if_exists {
409409 write ! ( f, " IF EXISTS" ) ?;
410410 }
411- write ! ( f, " {}" , name ) ?;
411+ write ! ( f, " {name}" ) ?;
412412 if let Some ( partition) = partition {
413- write ! ( f, " IN PARTITION {}" , partition ) ?;
413+ write ! ( f, " IN PARTITION {partition}" ) ?;
414414 }
415415 Ok ( ( ) )
416416 }
@@ -423,9 +423,9 @@ impl fmt::Display for AlterTableOperation {
423423 if * if_exists {
424424 write ! ( f, " IF EXISTS" ) ?;
425425 }
426- write ! ( f, " {}" , name ) ?;
426+ write ! ( f, " {name}" ) ?;
427427 if let Some ( partition) = partition {
428- write ! ( f, " IN PARTITION {}" , partition ) ?;
428+ write ! ( f, " IN PARTITION {partition}" ) ?;
429429 }
430430 Ok ( ( ) )
431431 }
@@ -661,7 +661,7 @@ impl fmt::Display for AlterColumnOperation {
661661 AlterColumnOperation :: SetDefault { value } => {
662662 write ! ( f, "SET DEFAULT {value}" )
663663 }
664- AlterColumnOperation :: DropDefault { } => {
664+ AlterColumnOperation :: DropDefault => {
665665 write ! ( f, "DROP DEFAULT" )
666666 }
667667 AlterColumnOperation :: SetDataType { data_type, using } => {
@@ -910,7 +910,7 @@ impl fmt::Display for TableConstraint {
910910 write ! ( f, " ON UPDATE {action}" ) ?;
911911 }
912912 if let Some ( characteristics) = characteristics {
913- write ! ( f, " {}" , characteristics ) ?;
913+ write ! ( f, " {characteristics}" ) ?;
914914 }
915915 Ok ( ( ) )
916916 }
@@ -1152,7 +1152,7 @@ impl fmt::Display for ViewColumnDef {
11521152 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
11531153 write ! ( f, "{}" , self . name) ?;
11541154 if let Some ( data_type) = self . data_type . as_ref ( ) {
1155- write ! ( f, " {}" , data_type ) ?;
1155+ write ! ( f, " {data_type}" ) ?;
11561156 }
11571157 if let Some ( options) = self . options . as_ref ( ) {
11581158 write ! ( f, " {}" , display_comma_separated( options. as_slice( ) ) ) ?;
@@ -1532,7 +1532,7 @@ impl fmt::Display for ColumnOption {
15321532 } => {
15331533 write ! ( f, "{}" , if * is_primary { "PRIMARY KEY" } else { "UNIQUE" } ) ?;
15341534 if let Some ( characteristics) = characteristics {
1535- write ! ( f, " {}" , characteristics ) ?;
1535+ write ! ( f, " {characteristics}" ) ?;
15361536 }
15371537 Ok ( ( ) )
15381538 }
@@ -1554,7 +1554,7 @@ impl fmt::Display for ColumnOption {
15541554 write ! ( f, " ON UPDATE {action}" ) ?;
15551555 }
15561556 if let Some ( characteristics) = characteristics {
1557- write ! ( f, " {}" , characteristics ) ?;
1557+ write ! ( f, " {characteristics}" ) ?;
15581558 }
15591559 Ok ( ( ) )
15601560 }
@@ -1613,7 +1613,7 @@ impl fmt::Display for ColumnOption {
16131613 write ! ( f, "{parameters}" )
16141614 }
16151615 OnConflict ( keyword) => {
1616- write ! ( f, "ON CONFLICT {:?}" , keyword ) ?;
1616+ write ! ( f, "ON CONFLICT {keyword :?}" ) ?;
16171617 Ok ( ( ) )
16181618 }
16191619 Policy ( parameters) => {
0 commit comments