Skip to content

Commit b9b8b5c

Browse files
committed
Reverse formatting
1 parent 6778baf commit b9b8b5c

File tree

1 file changed

+1
-5
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-5
lines changed

library/std/src/sys/windows/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,7 @@ macro_rules! impl_is_zero {
281281
impl_is_zero! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }
282282

283283
pub fn cvt<I: IsZero>(i: I) -> crate::io::Result<I> {
284-
if i.is_zero() {
285-
Err(crate::io::Error::last_os_error())
286-
} else {
287-
Ok(i)
288-
}
284+
if i.is_zero() { Err(crate::io::Error::last_os_error()) } else { Ok(i) }
289285
}
290286

291287
pub fn dur2timeout(dur: Duration) -> c::DWORD {

0 commit comments

Comments
 (0)