Reverse formatting
This commit is contained in:
parent
6778baf516
commit
b9b8b5c96b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user