diff --git a/src/lib.rs b/src/lib.rs index dcfd2495..44fbb3b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,11 +50,11 @@ impl Client { /// Makes a request to a Matrix API endpoint. pub fn request(&self, request: ::Request) - -> impl Future::Response, Error = Error> + -> impl Future where E: Endpoint, - ::Response: 'static, - Error: From<<::Request as TryInto>::Error>, - Error: From<<::Response as TryFrom>::Error> { + E::Response: 'static, + Error: From<>::Error>, + Error: From<>::Error> { let cloned_hyper = self.hyper.clone(); request