@@ -182,7 +182,7 @@ impl AuthManager {
182182
183183 // Create predefined roles
184184 if let Err ( e) = auth_manager_spawn. create_predefined_roles ( ) . await {
185- eprintln ! ( "Failed to create predefined roles: {:?}" , e ) ;
185+ eprintln ! ( "Failed to create predefined roles: {e :?}" ) ;
186186 }
187187 }
188188 } ) ;
@@ -282,7 +282,7 @@ impl AuthManager {
282282 pgwire:: error:: ErrorInfo :: new (
283283 "ERROR" . to_string ( ) ,
284284 "42704" . to_string ( ) , // undefined_object
285- format ! ( "role \" {}\" does not exist" , role_name ) ,
285+ format ! ( "role \" {role_name }\" does not exist" ) ,
286286 ) ,
287287 ) ) )
288288 }
@@ -306,7 +306,7 @@ impl AuthManager {
306306 pgwire:: error:: ErrorInfo :: new (
307307 "ERROR" . to_string ( ) ,
308308 "42704" . to_string ( ) , // undefined_object
309- format ! ( "role \" {}\" does not exist" , role_name ) ,
309+ format ! ( "role \" {role_name }\" does not exist" ) ,
310310 ) ,
311311 ) ) )
312312 }
@@ -410,7 +410,7 @@ impl AuthManager {
410410 // Schema grants access to all tables in that schema
411411 ( ResourceType :: Schema ( schema) , ResourceType :: Table ( table) ) => {
412412 // For simplicity, assume table names are schema.table format
413- table. starts_with ( & format ! ( "{}." , schema ) )
413+ table. starts_with ( & format ! ( "{schema }." ) )
414414 }
415415 _ => false ,
416416 }
@@ -434,7 +434,7 @@ impl AuthManager {
434434 pgwire:: error:: ErrorInfo :: new (
435435 "ERROR" . to_string ( ) ,
436436 "42704" . to_string ( ) , // undefined_object
437- format ! ( "role \" {}\" does not exist" , child_role ) ,
437+ format ! ( "role \" {child_role }\" does not exist" ) ,
438438 ) ,
439439 ) ) )
440440 }
@@ -456,7 +456,7 @@ impl AuthManager {
456456 pgwire:: error:: ErrorInfo :: new (
457457 "ERROR" . to_string ( ) ,
458458 "42704" . to_string ( ) , // undefined_object
459- format ! ( "role \" {}\" does not exist" , child_role ) ,
459+ format ! ( "role \" {child_role }\" does not exist" ) ,
460460 ) ,
461461 ) ) )
462462 }
@@ -623,7 +623,7 @@ impl StartupHandler for AuthStartupHandler {
623623 pgwire:: error:: ErrorInfo :: new (
624624 "FATAL" . to_string ( ) ,
625625 "28P01" . to_string ( ) , // invalid_password
626- format ! ( "password authentication failed for user \" {}\" " , username ) ,
626+ format ! ( "password authentication failed for user \" {username }\" " ) ,
627627 ) ,
628628 ) ) ) ;
629629 }
@@ -670,7 +670,7 @@ impl AuthSource for SimpleAuthSource {
670670 pgwire:: error:: ErrorInfo :: new (
671671 "FATAL" . to_string ( ) ,
672672 "28P01" . to_string ( ) , // invalid_password
673- format ! ( "password authentication failed for user \" {}\" " , username ) ,
673+ format ! ( "password authentication failed for user \" {username }\" " ) ,
674674 ) ,
675675 ) ) )
676676 }
0 commit comments