diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs index f9b744689..b2df9f7b1 100644 --- a/actix-service/src/and_then.rs +++ b/actix-service/src/and_then.rs @@ -219,7 +219,7 @@ mod tests { use std::rc::Rc; use super::*; - use crate::{NewService, Service}; + use crate::{NewService, Service, ServiceExt}; struct Srv1(Rc>); impl Service<&'static str> for Srv1 { diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index b355c1a9e..2b9ebcb2e 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -171,7 +171,7 @@ mod tests { use futures::future::{ok, FutureResult}; use futures::{Async, Future, Poll}; - use crate::{IntoNewService, IntoService, NewService, Service}; + use crate::{IntoNewService, IntoService, NewService, Service, ServiceExt}; #[derive(Clone)] struct Srv; diff --git a/actix-service/src/from_err.rs b/actix-service/src/from_err.rs index 7a4832bc9..55b560f1f 100644 --- a/actix-service/src/from_err.rs +++ b/actix-service/src/from_err.rs @@ -159,7 +159,7 @@ mod tests { use futures::future::{err, FutureResult}; use super::*; - use crate::{IntoNewService, NewService, Service}; + use crate::{IntoNewService, NewService, Service, ServiceExt}; struct Srv; impl Service<()> for Srv { diff --git a/actix-service/src/map.rs b/actix-service/src/map.rs index c6c23cf46..d3fb3c064 100644 --- a/actix-service/src/map.rs +++ b/actix-service/src/map.rs @@ -189,7 +189,7 @@ mod tests { use futures::future::{ok, FutureResult}; use super::*; - use crate::{IntoNewService, Service}; + use crate::{IntoNewService, Service, ServiceExt}; struct Srv; impl Service<()> for Srv { diff --git a/actix-service/src/map_err.rs b/actix-service/src/map_err.rs index ae3ed92e2..63089e956 100644 --- a/actix-service/src/map_err.rs +++ b/actix-service/src/map_err.rs @@ -190,7 +190,7 @@ mod tests { use futures::future::{err, FutureResult}; use super::*; - use crate::{IntoNewService, NewService, Service}; + use crate::{IntoNewService, NewService, Service, ServiceExt}; struct Srv; diff --git a/actix-service/src/then.rs b/actix-service/src/then.rs index 3667553d5..d4166c338 100644 --- a/actix-service/src/then.rs +++ b/actix-service/src/then.rs @@ -223,11 +223,11 @@ where #[cfg(test)] mod tests { use futures::future::{err, ok, FutureResult}; - use futures::{Async, Poll}; + use futures::{Async, Future, Poll}; use std::cell::Cell; use std::rc::Rc; - use super::*; + use crate::{IntoNewService, NewService, Service, ServiceExt}; #[derive(Clone)] struct Srv1(Rc>);