1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-12-02 19:12:24 +01:00

re-export Service and Transform traits

This commit is contained in:
Nikolay Kim 2019-05-22 11:20:37 -07:00
parent 4e141d7f5d
commit 7746e785c1
2 changed files with 2 additions and 1 deletions

View File

@ -448,7 +448,7 @@ mod tests {
.service(web::resource("/test").to(|| HttpResponse::Ok())), .service(web::resource("/test").to(|| HttpResponse::Ok())),
); );
let req = test::TestRequest::with_uri("/test").to_request(); 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)); assert!(data.load(Ordering::Relaxed));
} }

View File

@ -151,6 +151,7 @@ pub mod dev {
}; };
pub use actix_router::{Path, ResourceDef, ResourcePath, Url}; pub use actix_router::{Path, ResourceDef, ResourcePath, Url};
pub use actix_server::Server; pub use actix_server::Server;
pub use actix_service::{Service, Transform};
pub(crate) fn insert_slash(path: &str) -> String { pub(crate) fn insert_slash(path: &str) -> String {
let mut path = path.to_owned(); let mut path = path.to_owned();