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:
@@ -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) })),
|
||||
)
|
||||
})
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user