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:
@ -7,7 +7,7 @@ use std::{sync::mpsc, thread, time};
|
||||
use actix_web::{dev::ServerHandle, middleware, rt, web, App, HttpRequest, HttpServer};
|
||||
|
||||
async fn index(req: HttpRequest) -> &'static str {
|
||||
log::info!("REQ: {:?}", req);
|
||||
log::info!("REQ: {req:?}");
|
||||
"Hello world!"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user