diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs index f9b74468..b2df9f7b 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 b355c1a9..2b9ebcb2 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 7a4832bc..55b560f1 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 c6c23cf4..d3fb3c06 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 ae3ed92e..63089e95 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 3667553d..d4166c33 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>);