mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
Use captured args in format string (#558)
This commit is contained in:
@ -11,7 +11,7 @@ pub struct Info {
|
||||
|
||||
#[post("/user/info")]
|
||||
pub async fn info(info: web::Json<Info>) -> web::Json<Info> {
|
||||
println!("=========={:?}=========", info);
|
||||
println!("=========={info:?}=========");
|
||||
web::Json(Info {
|
||||
username: info.username.clone(),
|
||||
email: info.email.clone(),
|
||||
|
Reference in New Issue
Block a user