We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6778baf commit b9b8b5cCopy full SHA for b9b8b5c
library/std/src/sys/windows/mod.rs
@@ -281,11 +281,7 @@ macro_rules! impl_is_zero {
281
impl_is_zero! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }
282
283
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
- }
+ if i.is_zero() { Err(crate::io::Error::last_os_error()) } else { Ok(i) }
289
}
290
291
pub fn dur2timeout(dur: Duration) -> c::DWORD {
0 commit comments