1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-01 01:16:59 +02:00

remove impl Future for HttpResponse (#2601)

This commit is contained in:
Rob Ede
2022-01-24 11:56:01 +00:00
committed by GitHub
parent 50894e392e
commit d7c5c966d2
13 changed files with 182 additions and 139 deletions

View File

@@ -33,8 +33,9 @@ fn bench_async_burst(c: &mut Criterion) {
let srv = rt.block_on(async {
actix_test::start(|| {
App::new()
.service(web::resource("/").route(web::to(|| HttpResponse::Ok().body(STR))))
App::new().service(
web::resource("/").route(web::to(|| async { HttpResponse::Ok().body(STR) })),
)
})
});