diff --git a/src/request.rs b/src/request.rs index ee9d94a6..324b676c 100644 --- a/src/request.rs +++ b/src/request.rs @@ -231,7 +231,7 @@ impl Request<()> { /// ``` pub fn get(uri: T) -> Builder where - T: TryInto, + T: TryInto, >::Error: Into, { Builder::new().method(Method::GET).uri(uri) @@ -253,7 +253,7 @@ impl Request<()> { /// ``` pub fn put(uri: T) -> Builder where - T: TryInto, + T: TryInto, >::Error: Into, { Builder::new().method(Method::PUT).uri(uri) @@ -275,7 +275,7 @@ impl Request<()> { /// ``` pub fn post(uri: T) -> Builder where - T: TryInto, + T: TryInto, >::Error: Into, { Builder::new().method(Method::POST).uri(uri) @@ -297,7 +297,7 @@ impl Request<()> { /// ``` pub fn delete(uri: T) -> Builder where - T: TryInto, + T: TryInto, >::Error: Into, { Builder::new().method(Method::DELETE).uri(uri) @@ -321,7 +321,7 @@ impl Request<()> { pub fn options(uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { Builder::new().method(Method::OPTIONS).uri(uri) } @@ -343,7 +343,7 @@ impl Request<()> { pub fn head(uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { Builder::new().method(Method::HEAD).uri(uri) } @@ -365,7 +365,7 @@ impl Request<()> { pub fn connect(uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { Builder::new().method(Method::CONNECT).uri(uri) } @@ -387,7 +387,7 @@ impl Request<()> { pub fn patch(uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { Builder::new().method(Method::PATCH).uri(uri) } @@ -409,7 +409,7 @@ impl Request<()> { pub fn trace(uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { Builder::new().method(Method::TRACE).uri(uri) } @@ -768,7 +768,7 @@ impl Builder { pub fn method(self, method: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { self.and_then(move |mut head| { let method = method.try_into().map_err(Into::into)?; @@ -813,7 +813,7 @@ impl Builder { pub fn uri(self, uri: T) -> Builder where T: TryInto, - >::Error: Into + >::Error: Into, { self.and_then(move |mut head| { head.uri = uri.try_into().map_err(Into::into)?; diff --git a/src/response.rs b/src/response.rs index 01f7e3d1..ab9e49bc 100644 --- a/src/response.rs +++ b/src/response.rs @@ -68,7 +68,7 @@ use std::fmt; use crate::header::{HeaderMap, HeaderName, HeaderValue}; use crate::status::StatusCode; use crate::version::Version; -use crate::{ Extensions, Result}; +use crate::{Extensions, Result}; /// Represents an HTTP response /// @@ -559,8 +559,8 @@ impl Builder { /// ``` pub fn status(self, status: T) -> Builder where - T: TryInto, - >::Error: Into, + T: TryInto, + >::Error: Into, { self.and_then(move |mut head| { head.status = status.try_into().map_err(Into::into)?; @@ -610,10 +610,10 @@ impl Builder { /// ``` pub fn header(self, key: K, value: V) -> Builder where - K: TryInto, - >::Error: Into, - V: TryInto, - >::Error: Into, + K: TryInto, + >::Error: Into, + V: TryInto, + >::Error: Into, { self.and_then(move |mut head| { let name = key.try_into().map_err(Into::into)?; diff --git a/src/uri/builder.rs b/src/uri/builder.rs index 126b357f..d5f7f49b 100644 --- a/src/uri/builder.rs +++ b/src/uri/builder.rs @@ -44,8 +44,8 @@ impl Builder { /// ``` pub fn scheme(self, scheme: T) -> Self where - T: TryInto, - >::Error: Into, + T: TryInto, + >::Error: Into, { self.map(move |mut parts| { let scheme = scheme.try_into().map_err(Into::into)?; @@ -68,7 +68,7 @@ impl Builder { /// ``` pub fn authority(self, auth: T) -> Self where - T: TryInto, + T: TryInto, >::Error: Into, { self.map(move |mut parts| { @@ -92,7 +92,7 @@ impl Builder { /// ``` pub fn path_and_query(self, p_and_q: T) -> Self where - T: TryInto, + T: TryInto, >::Error: Into, { self.map(move |mut parts| {