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:
@ -36,7 +36,7 @@ async fn index(
|
||||
counter_atomic: Data<AtomicUsize>,
|
||||
req: HttpRequest,
|
||||
) -> HttpResponse {
|
||||
println!("{:?}", req);
|
||||
println!("{req:?}");
|
||||
|
||||
// Increment the counters
|
||||
*counter_mutex.lock().unwrap() += 1;
|
||||
|
Reference in New Issue
Block a user