Simplify implementation of From<Infallible> for TryFromIntError.
This commit is contained in:
parent
1a29e82227
commit
966cf339cb
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user