Allow cvt_nz to be unused on some platforms.
This commit is contained in:
parent
5b2591299a
commit
8a2c9a9615
@ -215,6 +215,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // Not used on all platforms.
|
||||
pub fn cvt_nz(error: libc::c_int) -> crate::io::Result<()> {
|
||||
if error == 0 { Ok(()) } else { Err(crate::io::Error::from_raw_os_error(error)) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user