File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ where
160160 return Err ( PgWireError :: UserError ( Box :: new ( ErrorInfo :: new (
161161 "FATAL" . to_string ( ) ,
162162 "XX000" . to_string ( ) ,
163- format ! ( "Unsupported parameter type: {}" , pg_type ) ,
163+ format ! ( "Unsupported parameter type: {pg_type}" ) ,
164164 ) ) ) ) ;
165165 }
166166 }
Original file line number Diff line number Diff line change @@ -496,8 +496,7 @@ pub fn encode_value<T: Encoder>(
496496 postgres_types:: Kind :: Composite ( fields) => fields,
497497 _ => {
498498 return Err ( PgWireError :: ApiError ( ToSqlError :: from ( format ! (
499- "Failed to unwrap a composite type from type {}" ,
500- type_
499+ "Failed to unwrap a composite type from type {type_}"
501500 ) ) ) ) ;
502501 }
503502 } ;
@@ -529,8 +528,7 @@ pub fn encode_value<T: Encoder>(
529528 . or_else ( || get_dict_values ! ( UInt64Type ) )
530529 . ok_or_else ( || {
531530 ToSqlError :: from ( format ! (
532- "Unsupported dictionary key type for value type {}" ,
533- value_type
531+ "Unsupported dictionary key type for value type {value_type}" ,
534532 ) )
535533 } ) ?;
536534
You can’t perform that action at this time.
0 commit comments