mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
cleanup and cargo fmt
This commit is contained in:
@ -29,10 +29,7 @@ fn index(req: HttpRequest<AppState>) -> HttpResponse {
|
||||
println!("{:?}", req);
|
||||
req.state().counter.set(req.state().counter.get() + 1);
|
||||
|
||||
HttpResponse::Ok().body(format!(
|
||||
"Num of requests: {}",
|
||||
req.state().counter.get()
|
||||
))
|
||||
HttpResponse::Ok().body(format!("Num of requests: {}", req.state().counter.get()))
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
Reference in New Issue
Block a user