diff --git a/src/server/mod.rs b/src/server/mod.rs index 26d7c335b0..6ab80458a3 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -96,8 +96,7 @@ impl + 'static> Http { /// The returned `Server` contains one method, `run`, which is used to /// actually run the server. pub fn bind(&self, addr: &SocketAddr, new_service: S) -> ::Result> - where S: NewService, Error = ::Error> + - Send + Sync + 'static, + where S: NewService, Error = ::Error> + 'static, Bd: Stream, { let core = try!(Core::new()); @@ -378,8 +377,7 @@ impl Service for HttpService } impl Server - where S: NewService, Error = ::Error> - + Send + Sync + 'static, + where S: NewService, Error = ::Error> + 'static, B: Stream + 'static, B::Item: AsRef<[u8]>, {