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();