Simplify implementation of From<Infallible> for TryFromIntError.

This commit is contained in:
Jimmy Cuadra 2017-09-29 14:04:28 -07:00
parent 1a29e82227
commit 966cf339cb

View File

@ -2505,8 +2505,9 @@ impl fmt::Display for TryFromIntError {
#[unstable(feature = "try_from", issue = "33417")]
impl From<Infallible> for TryFromIntError {
fn from(_: Infallible) -> TryFromIntError {
TryFromIntError(())
fn from(infallible: Infallible) -> TryFromIntError {
match infallible {
}
}
}