From b6f0d8d8b4895fd4ba247c3a801aa699e39717ea Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 12 May 2017 00:27:07 -0700 Subject: [PATCH] Use less verbose syntax for associated types. --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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