File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ pub enum Never {}
12
12
// The Debug implementation is needed to allow the use of `Result::unwrap`.
13
13
impl core:: fmt:: Debug for Never {
14
14
fn fmt ( & self , _f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
15
- // This is unreachable because no instance of Never can exist
16
- unreachable ! ( )
15
+ // Unreachable because no instance of Never can exist
16
+ match * self { }
17
17
}
18
18
}
19
19
20
20
// The Display implementation is needed to fulfill the ToString requirement of
21
21
// entry point errors: `Result<IbcReceiveResponse<C>, E>` with `E: ToString`.
22
22
impl core:: fmt:: Display for Never {
23
23
fn fmt ( & self , _f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
24
- // This is unreachable because no instance of Never can exist
25
- unreachable ! ( )
24
+ // Unreachable because no instance of Never can exist
25
+ match * self { }
26
26
}
27
27
}
You can’t perform that action at this time.
0 commit comments