mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Use inline format args (#2232)
This commit is contained in:
@@ -69,10 +69,7 @@ async fn accept_form(mut multipart: Multipart) {
|
||||
let data = field.bytes().await.unwrap();
|
||||
|
||||
println!(
|
||||
"Length of `{}` (`{}`: `{}`) is {} bytes",
|
||||
name,
|
||||
file_name,
|
||||
content_type,
|
||||
"Length of `{name}` (`{file_name}`: `{content_type}`) is {} bytes",
|
||||
data.len()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user