Skip to content

Commit 5300dbf

Browse files
committed
fix: Update format strings to use inline variable syntax
- Fix remaining clippy::uninlined_format_args warnings in auth.rs - Update format! macros to use modern {variable} syntax - Ensures full compliance with clippy -D warnings All code quality checks now pass ✅
1 parent 98ae79d commit 5300dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion-postgres/src/auth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ impl AuthSource for DfAuthSource {
597597
pgwire::error::ErrorInfo::new(
598598
"FATAL".to_string(),
599599
"28000".to_string(), // invalid_authorization_specification
600-
format!("User \"{}\" is not allowed to login", username),
600+
format!("User \"{username}\" is not allowed to login"),
601601
),
602602
)))
603603
}
@@ -606,7 +606,7 @@ impl AuthSource for DfAuthSource {
606606
pgwire::error::ErrorInfo::new(
607607
"FATAL".to_string(),
608608
"28P01".to_string(), // invalid_password
609-
format!("password authentication failed for user \"{}\"", username),
609+
format!("password authentication failed for user \"{username}\""),
610610
),
611611
)))
612612
}

0 commit comments

Comments
 (0)