mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-17 23:19:06 +00:00
Fix 'Error' associated type for 'Result<T, T::Error>'.
This commit is contained in:
parent
fe59a7fe38
commit
83cead775f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user