Fix 'Error' associated type for 'Result<T, T::Error>'.

This commit is contained in:
Sergio Benitez 2018-08-10 19:14:39 -07:00
parent fe59a7fe38
commit 83cead775f
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ impl<'a, 'r> FromRequest<'a, 'r> for SocketAddr {
} }
impl<'a, 'r, T: FromRequest<'a, 'r>> FromRequest<'a, 'r> for Result<T, T::Error> { impl<'a, 'r, T: FromRequest<'a, 'r>> FromRequest<'a, 'r> for Result<T, T::Error> {
type Error = T::Error; type Error = !;
fn from_request(request: &'a Request<'r>) -> Outcome<Self, Self::Error> { fn from_request(request: &'a Request<'r>) -> Outcome<Self, Self::Error> {
match T::from_request(request) { match T::from_request(request) {