Skip to content

Commit 2038a9b

Browse files
committed
misc: cargo fmt
1 parent 0ecd01d commit 2038a9b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
#[cfg(not(feature = "std"))]
1515
mod coreprovider {
1616
extern crate core;
17-
pub use core::{fmt, cmp};
17+
pub use core::{cmp, fmt};
1818
}
1919

2020
#[cfg(feature = "std")]
2121
mod coreprovider {
22-
pub use std::{fmt, cmp, error};
22+
pub use std::{cmp, error, fmt};
2323
}
2424

2525
use coreprovider::*;
2626

2727
/// The empty type for cases which can't occur.
2828
#[derive(Copy)]
29-
pub enum Void { }
29+
pub enum Void {}
3030

3131
impl Clone for Void {
3232
fn clone(&self) -> Void {
@@ -99,7 +99,7 @@ impl<T> ResultVoidExt<T> for Result<T, Void> {
9999
fn void_unwrap(self) -> T {
100100
match self {
101101
Ok(val) => val,
102-
Err(e) => unreachable(e)
102+
Err(e) => unreachable(e),
103103
}
104104
}
105105
}
@@ -118,8 +118,7 @@ impl<E> ResultVoidErrExt<E> for Result<Void, E> {
118118
fn void_unwrap_err(self) -> E {
119119
match self {
120120
Ok(v) => unreachable(v),
121-
Err(e) => e
121+
Err(e) => e,
122122
}
123123
}
124124
}
125-

0 commit comments

Comments
 (0)