File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ pub enum Infallible {}
62
62
63
63
#[ unstable( feature = "try_from" , issue = "33417" ) ]
64
64
impl fmt:: Display for Infallible {
65
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
66
- "an error of this type can never exist" . fmt ( f)
65
+ fn fmt ( & self , _: & mut fmt:: Formatter ) -> fmt:: Result {
66
+ match * self {
67
+ }
67
68
}
68
69
}
69
70
/// A cheap reference-to-reference conversion. Used to convert a value to a
Original file line number Diff line number Diff line change @@ -351,7 +351,8 @@ impl Error for char::ParseCharError {
351
351
#[ unstable( feature = "try_from" , issue = "33417" ) ]
352
352
impl Error for convert:: Infallible {
353
353
fn description ( & self ) -> & str {
354
- "an error of this type can never exist"
354
+ match * self {
355
+ }
355
356
}
356
357
}
357
358
You can’t perform that action at this time.
0 commit comments