File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1414#[ cfg( not( feature = "std" ) ) ]
1515mod coreprovider {
1616 extern crate core;
17- pub use core:: { fmt , cmp } ;
17+ pub use core:: { cmp , fmt } ;
1818}
1919
2020#[ cfg( feature = "std" ) ]
2121mod coreprovider {
22- pub use std:: { fmt , cmp, error} ;
22+ pub use std:: { cmp, error, fmt } ;
2323}
2424
2525use coreprovider:: * ;
2626
2727/// The empty type for cases which can't occur.
2828#[ derive( Copy ) ]
29- pub enum Void { }
29+ pub enum Void { }
3030
3131impl Clone for Void {
3232 fn clone ( & self ) -> Void {
@@ -95,7 +95,7 @@ impl<T> ResultVoidExt<T> for Result<T, Void> {
9595 fn void_unwrap ( self ) -> T {
9696 match self {
9797 Ok ( val) => val,
98- Err ( e) => unreachable ( e)
98+ Err ( e) => unreachable ( e) ,
9999 }
100100 }
101101}
@@ -114,8 +114,7 @@ impl<E> ResultVoidErrExt<E> for Result<Void, E> {
114114 fn void_unwrap_err ( self ) -> E {
115115 match self {
116116 Ok ( v) => unreachable ( v) ,
117- Err ( e) => e
117+ Err ( e) => e,
118118 }
119119 }
120120}
121-
You can’t perform that action at this time.
0 commit comments