File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 14
14
#[ cfg( not( feature = "std" ) ) ]
15
15
mod coreprovider {
16
16
extern crate core;
17
- pub use core:: { fmt , cmp } ;
17
+ pub use core:: { cmp , fmt } ;
18
18
}
19
19
20
20
#[ cfg( feature = "std" ) ]
21
21
mod coreprovider {
22
- pub use std:: { fmt , cmp, error} ;
22
+ pub use std:: { cmp, error, fmt } ;
23
23
}
24
24
25
25
use coreprovider:: * ;
26
26
27
27
/// The empty type for cases which can't occur.
28
28
#[ derive( Copy ) ]
29
- pub enum Void { }
29
+ pub enum Void { }
30
30
31
31
impl Clone for Void {
32
32
fn clone ( & self ) -> Void {
@@ -95,7 +95,7 @@ impl<T> ResultVoidExt<T> for Result<T, Void> {
95
95
fn void_unwrap ( self ) -> T {
96
96
match self {
97
97
Ok ( val) => val,
98
- Err ( e) => unreachable ( e)
98
+ Err ( e) => unreachable ( e) ,
99
99
}
100
100
}
101
101
}
@@ -114,8 +114,7 @@ impl<E> ResultVoidErrExt<E> for Result<Void, E> {
114
114
fn void_unwrap_err ( self ) -> E {
115
115
match self {
116
116
Ok ( v) => unreachable ( v) ,
117
- Err ( e) => e
117
+ Err ( e) => e,
118
118
}
119
119
}
120
120
}
121
-
You can’t perform that action at this time.
0 commit comments