We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b25912 commit 8a2c9a9Copy full SHA for 8a2c9a9
1 file changed
library/std/src/sys/unix/mod.rs
@@ -215,6 +215,7 @@ where
215
}
216
217
218
+#[allow(dead_code)] // Not used on all platforms.
219
pub fn cvt_nz(error: libc::c_int) -> crate::io::Result<()> {
220
if error == 0 { Ok(()) } else { Err(crate::io::Error::from_raw_os_error(error)) }
221
0 commit comments