Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 83cead775f684950ac92f4e14f4f3a15e253fed5
parent fe59a7fe38a0835bccdeb795fe775862332cc183
Author: Sergio Benitez <sb@sergio.bz>
Date:   Fri, 10 Aug 2018 19:14:39 -0700

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

Diffstat:
Mcore/lib/src/request/from_request.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/src/request/from_request.rs b/core/lib/src/request/from_request.rs @@ -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> { - type Error = T::Error; + type Error = !; fn from_request(request: &'a Request<'r>) -> Outcome<Self, Self::Error> { match T::from_request(request) {