We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1349f3 commit f61a788Copy full SHA for f61a788
tests/socket.rs
@@ -297,7 +297,7 @@ pub fn assert_nonblocking(socket: &Socket, want: bool) {
297
#[cfg(all(feature = "all", unix))]
298
assert_eq!(socket.nonblocking().unwrap(), want, "non-blocking option");
299
300
- #[cfg(all(not(target_os = "vita"), not(all(feature = "all", unix))))]
+ #[cfg(not(any(all(feature = "all", unix), target_os = "vita")))]
301
{
302
let flags = unsafe { libc::fcntl(socket.as_raw_fd(), libc::F_GETFL) };
303
assert_eq!(flags & libc::O_NONBLOCK != 0, want, "non-blocking option");
0 commit comments