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 {
@@ -99,7 +99,7 @@ impl<T> ResultVoidExt<T> for Result<T, Void> {
99
99
fn void_unwrap ( self ) -> T {
100
100
match self {
101
101
Ok ( val) => val,
102
- Err ( e) => unreachable ( e)
102
+ Err ( e) => unreachable ( e) ,
103
103
}
104
104
}
105
105
}
@@ -118,8 +118,7 @@ impl<E> ResultVoidErrExt<E> for Result<Void, E> {
118
118
fn void_unwrap_err ( self ) -> E {
119
119
match self {
120
120
Ok ( v) => unreachable ( v) ,
121
- Err ( e) => e
121
+ Err ( e) => e,
122
122
}
123
123
}
124
124
}
125
-
You can’t perform that action at this time.
0 commit comments