From 04412c54746898194ee4b7f1b157152f7c473f65 Mon Sep 17 00:00:00 2001 From: robjtede Date: Tue, 1 Mar 2022 04:32:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20e1f79?= =?UTF-8?q?dae17c4560d3718592cedd9226b40060f6e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actix_web_httpauth/middleware.rs.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actix_web_httpauth/middleware.rs.html b/src/actix_web_httpauth/middleware.rs.html index f0df9303c..8d34b8627 100644 --- a/src/actix_web_httpauth/middleware.rs.html +++ b/src/actix_web_httpauth/middleware.rs.html @@ -775,7 +775,7 @@ assert!(f.is_ok()); } - #[actix_rt::test] + #[actix_web::test] async fn test_middleware_works_with_app() { async fn validator( _req: ServiceRequest, @@ -788,7 +788,7 @@ let srv = actix_web::test::init_service( App::new() .wrap(middleware) - .route("/", web::get().to(|| web::HttpResponse::Ok())), + .route("/", web::get().to(HttpResponse::Ok)), ) .await; @@ -800,7 +800,7 @@ assert_eq!(resp.status(), StatusCode::UNAUTHORIZED); } - #[actix_rt::test] + #[actix_web::test] async fn test_middleware_works_with_scope() { async fn validator( _req: ServiceRequest, @@ -814,7 +814,7 @@ App::new().service( web::scope("/") .wrap(middleware) - .route("/", web::get().to(|| web::HttpResponse::Ok())), + .route("/", web::get().to(HttpResponse::Ok)), ), ) .await;