mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
Use captured args in format string (#558)
This commit is contained in:
@ -80,7 +80,7 @@ pub async fn update(
|
||||
"put" => toggle(db, params).await,
|
||||
"delete" => delete(db, params, session).await,
|
||||
unsupported_method => {
|
||||
let msg = format!("Unsupported HTTP method: {}", unsupported_method);
|
||||
let msg = format!("Unsupported HTTP method: {unsupported_method}");
|
||||
Err(error::ErrorBadRequest(msg))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user