mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Use inline format args (#2232)
This commit is contained in:
@@ -80,8 +80,7 @@ async fn main() {
|
||||
async fn protected(claims: Claims) -> Result<String, AuthError> {
|
||||
// Send the protected data to the user
|
||||
Ok(format!(
|
||||
"Welcome to the protected area :)\nYour data:\n{}",
|
||||
claims
|
||||
"Welcome to the protected area :)\nYour data:\n{claims}",
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user