Skip to content

Commit 8a2c9a9

Browse files
committed
Allow cvt_nz to be unused on some platforms.
1 parent 5b25912 commit 8a2c9a9

File tree

1 file changed

+1
-0
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-0
lines changed

library/std/src/sys/unix/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ where
215215
}
216216
}
217217

218+
#[allow(dead_code)] // Not used on all platforms.
218219
pub fn cvt_nz(error: libc::c_int) -> crate::io::Result<()> {
219220
if error == 0 { Ok(()) } else { Err(crate::io::Error::from_raw_os_error(error)) }
220221
}

0 commit comments

Comments
 (0)