We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feb48a4 commit 185fa6cCopy full SHA for 185fa6c
1 file changed
src/system/mod.rs
@@ -56,6 +56,8 @@ fn set_cloexec(fd: c_int) -> io::Result<()> {
56
/// Returns Ok(true) on success, Ok(false) if unsupported, Err on any other failure.
57
#[cfg(not(target_os = "macos"))]
58
fn try_close_range(lowfd: c_int) -> io::Result<bool> {
59
+ // SAFETY: this function is safe to call:
60
+ // - any errors while closing a specific fd will be effectively ignored
61
#[allow(clippy::diverging_sub_expression)]
62
let res = unsafe {
63
'a: {
0 commit comments