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

Fix clippy warnings (#2217)

This commit is contained in:
Keita Nonaka
2021-05-15 09:13:33 +09:00
committed by GitHub
parent 2a8c650f2c
commit b1de196509
4 changed files with 6 additions and 6 deletions

View File

@ -901,7 +901,7 @@ async fn test_normalize() {
let srv = actix_test::start_with(actix_test::config().h1(), || {
App::new()
.wrap(NormalizePath::new(TrailingSlash::Trim))
.service(web::resource("/one").route(web::to(|| HttpResponse::Ok())))
.service(web::resource("/one").route(web::to(HttpResponse::Ok)))
});
let response = srv.get("/one/").send().await.unwrap();