Skip to content

Commit bccd366

Browse files
committed
Remove sockref_from_invalid_fd test
Doesn't work on 1.46, the AsRawFd implementation for RawFd was added in Rust 1.48.
1 parent 320f3e2 commit bccd366

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/sockref.rs

-8
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,3 @@ impl fmt::Debug for SockRef<'_> {
145145
.finish()
146146
}
147147
}
148-
149-
#[test]
150-
#[should_panic]
151-
#[cfg(unix)]
152-
fn sockref_from_invalid_fd() {
153-
let raw: std::os::unix::io::RawFd = -1;
154-
let _ = SockRef::from(&raw);
155-
}

0 commit comments

Comments
 (0)