1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

bump MSRV to 1.42 (#180)

This commit is contained in:
Rob Ede
2020-08-17 15:37:57 +01:00
committed by GitHub
parent 5d28be9ad6
commit fb098536ee
4 changed files with 6 additions and 9 deletions

View File

@ -58,10 +58,7 @@ impl<E: PartialEq> PartialEq for TimeoutError<E> {
TimeoutError::Service(e2) => e1 == e2,
TimeoutError::Timeout => false,
},
TimeoutError::Timeout => match other {
TimeoutError::Service(_) => false,
TimeoutError::Timeout => true,
},
TimeoutError::Timeout => matches!(other, TimeoutError::Timeout),
}
}
}