@@ -57,7 +57,7 @@ impl fmt::Display for ReplicaIdentity {
57
57
ReplicaIdentity :: None => f. write_str ( "NONE" ) ,
58
58
ReplicaIdentity :: Full => f. write_str ( "FULL" ) ,
59
59
ReplicaIdentity :: Default => f. write_str ( "DEFAULT" ) ,
60
- ReplicaIdentity :: Index ( idx) => write ! ( f, "USING INDEX {}" , idx ) ,
60
+ ReplicaIdentity :: Index ( idx) => write ! ( f, "USING INDEX {idx}" ) ,
61
61
}
62
62
}
63
63
}
@@ -450,7 +450,7 @@ pub enum Owner {
450
450
impl fmt:: Display for Owner {
451
451
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
452
452
match self {
453
- Owner :: Ident ( ident) => write ! ( f, "{}" , ident ) ,
453
+ Owner :: Ident ( ident) => write ! ( f, "{ident}" ) ,
454
454
Owner :: CurrentRole => write ! ( f, "CURRENT_ROLE" ) ,
455
455
Owner :: CurrentUser => write ! ( f, "CURRENT_USER" ) ,
456
456
Owner :: SessionUser => write ! ( f, "SESSION_USER" ) ,
@@ -525,7 +525,7 @@ impl fmt::Display for AlterTableOperation {
525
525
if * if_not_exists {
526
526
write ! ( f, " IF NOT EXISTS" ) ?;
527
527
}
528
- write ! ( f, " {} ({})" , name , query )
528
+ write ! ( f, " {name } ({query })" )
529
529
}
530
530
AlterTableOperation :: Algorithm { equals, algorithm } => {
531
531
write ! (
@@ -540,7 +540,7 @@ impl fmt::Display for AlterTableOperation {
540
540
if * if_exists {
541
541
write ! ( f, " IF EXISTS" ) ?;
542
542
}
543
- write ! ( f, " {}" , name )
543
+ write ! ( f, " {name}" )
544
544
}
545
545
AlterTableOperation :: MaterializeProjection {
546
546
if_exists,
@@ -551,9 +551,9 @@ impl fmt::Display for AlterTableOperation {
551
551
if * if_exists {
552
552
write ! ( f, " IF EXISTS" ) ?;
553
553
}
554
- write ! ( f, " {}" , name ) ?;
554
+ write ! ( f, " {name}" ) ?;
555
555
if let Some ( partition) = partition {
556
- write ! ( f, " IN PARTITION {}" , partition ) ?;
556
+ write ! ( f, " IN PARTITION {partition}" ) ?;
557
557
}
558
558
Ok ( ( ) )
559
559
}
@@ -566,9 +566,9 @@ impl fmt::Display for AlterTableOperation {
566
566
if * if_exists {
567
567
write ! ( f, " IF EXISTS" ) ?;
568
568
}
569
- write ! ( f, " {}" , name ) ?;
569
+ write ! ( f, " {name}" ) ?;
570
570
if let Some ( partition) = partition {
571
- write ! ( f, " IN PARTITION {}" , partition ) ?;
571
+ write ! ( f, " IN PARTITION {partition}" ) ?;
572
572
}
573
573
Ok ( ( ) )
574
574
}
@@ -1168,7 +1168,7 @@ impl fmt::Display for TableConstraint {
1168
1168
write ! ( f, " ON UPDATE {action}" ) ?;
1169
1169
}
1170
1170
if let Some ( characteristics) = characteristics {
1171
- write ! ( f, " {}" , characteristics ) ?;
1171
+ write ! ( f, " {characteristics}" ) ?;
1172
1172
}
1173
1173
Ok ( ( ) )
1174
1174
}
@@ -1308,7 +1308,7 @@ impl fmt::Display for IndexType {
1308
1308
Self :: SPGiST => write ! ( f, "SPGIST" ) ,
1309
1309
Self :: BRIN => write ! ( f, "BRIN" ) ,
1310
1310
Self :: Bloom => write ! ( f, "BLOOM" ) ,
1311
- Self :: Custom ( name) => write ! ( f, "{}" , name ) ,
1311
+ Self :: Custom ( name) => write ! ( f, "{name}" ) ,
1312
1312
}
1313
1313
}
1314
1314
}
@@ -1450,7 +1450,7 @@ impl fmt::Display for ViewColumnDef {
1450
1450
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1451
1451
write ! ( f, "{}" , self . name) ?;
1452
1452
if let Some ( data_type) = self . data_type . as_ref ( ) {
1453
- write ! ( f, " {}" , data_type ) ?;
1453
+ write ! ( f, " {data_type}" ) ?;
1454
1454
}
1455
1455
if let Some ( options) = self . options . as_ref ( ) {
1456
1456
match options {
@@ -1845,7 +1845,7 @@ impl fmt::Display for ColumnOption {
1845
1845
} => {
1846
1846
write ! ( f, "{}" , if * is_primary { "PRIMARY KEY" } else { "UNIQUE" } ) ?;
1847
1847
if let Some ( characteristics) = characteristics {
1848
- write ! ( f, " {}" , characteristics ) ?;
1848
+ write ! ( f, " {characteristics}" ) ?;
1849
1849
}
1850
1850
Ok ( ( ) )
1851
1851
}
@@ -1867,7 +1867,7 @@ impl fmt::Display for ColumnOption {
1867
1867
write ! ( f, " ON UPDATE {action}" ) ?;
1868
1868
}
1869
1869
if let Some ( characteristics) = characteristics {
1870
- write ! ( f, " {}" , characteristics ) ?;
1870
+ write ! ( f, " {characteristics}" ) ?;
1871
1871
}
1872
1872
Ok ( ( ) )
1873
1873
}
@@ -1927,7 +1927,7 @@ impl fmt::Display for ColumnOption {
1927
1927
write ! ( f, "{parameters}" )
1928
1928
}
1929
1929
OnConflict ( keyword) => {
1930
- write ! ( f, "ON CONFLICT {:?}" , keyword ) ?;
1930
+ write ! ( f, "ON CONFLICT {keyword :?}" ) ?;
1931
1931
Ok ( ( ) )
1932
1932
}
1933
1933
Policy ( parameters) => {
0 commit comments