Reverse formatting

This commit is contained in:
Ryan Levick 2020-08-10 18:04:44 +02:00
parent 6778baf516
commit b9b8b5c96b

View File

@ -281,11 +281,7 @@ macro_rules! impl_is_zero {
impl_is_zero! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }
pub fn cvt<I: IsZero>(i: I) -> crate::io::Result<I> {
if i.is_zero() {
Err(crate::io::Error::last_os_error())
} else {
Ok(i)
}
if i.is_zero() { Err(crate::io::Error::last_os_error()) } else { Ok(i) }
}
pub fn dur2timeout(dur: Duration) -> c::DWORD {