From 7746e785c19c0e8d4c605f9bf44d68c6c469c035 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 22 May 2019 11:20:37 -0700 Subject: [PATCH] re-export Service and Transform traits --- src/app_service.rs | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app_service.rs b/src/app_service.rs index 1a4a22b8..c483a119 100644 --- a/src/app_service.rs +++ b/src/app_service.rs @@ -448,7 +448,7 @@ mod tests { .service(web::resource("/test").to(|| HttpResponse::Ok())), ); let req = test::TestRequest::with_uri("/test").to_request(); - let resp = test::block_on(app.call(req)).unwrap(); + let _ = test::block_on(app.call(req)).unwrap(); } assert!(data.load(Ordering::Relaxed)); } diff --git a/src/lib.rs b/src/lib.rs index b578d87c..f84dbd5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,6 +151,7 @@ pub mod dev { }; pub use actix_router::{Path, ResourceDef, ResourcePath, Url}; pub use actix_server::Server; + pub use actix_service::{Service, Transform}; pub(crate) fn insert_slash(path: &str) -> String { let mut path = path.to_owned();