1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

Run rustfmt

This commit is contained in:
Yuki Okushi
2020-05-21 17:56:53 +09:00
parent fe89ba7027
commit 6dd78d9355
6 changed files with 45 additions and 40 deletions

View File

@ -349,9 +349,10 @@ async fn test_body_br_streaming() {
#[actix_rt::test]
async fn test_head_binary() {
let srv = test::start_with(test::config().h1(), || {
App::new().service(web::resource("/").route(
web::head().to(move || HttpResponse::Ok().body(STR)),
))
App::new().service(
web::resource("/")
.route(web::head().to(move || HttpResponse::Ok().body(STR))),
)
});
let mut response = srv.head("/").send().await.unwrap();