Skip to content

Commit 6a9f537

Browse files
committed
misc: cargo fmt
1 parent dbb9b32 commit 6a9f537

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 {
@@ -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-

0 commit comments

Comments
 (0)