Skip to content

Commit aef996a

Browse files
committed
Fix warnings.
1 parent 1a89311 commit aef996a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sys/event.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Kqueue {
7171
timeout as *const timespec
7272
} else {
7373
ptr::null()
74-
}
74+
},
7575
)
7676
};
7777
Errno::result(res).map(|r| r as usize)
@@ -86,7 +86,7 @@ impl Kqueue {
8686
target_os = "openbsd"
8787
))]
8888
type type_of_udata = *mut libc::c_void;
89-
#[cfg(any(target_os = "netbsd"))]
89+
#[cfg(target_os = "netbsd")]
9090
type type_of_udata = intptr_t;
9191

9292
#[cfg(target_os = "netbsd")]
@@ -171,7 +171,7 @@ libc_enum! {
171171
))]
172172
#[doc(hidden)]
173173
pub type type_of_event_flag = u16;
174-
#[cfg(any(target_os = "netbsd"))]
174+
#[cfg(target_os = "netbsd")]
175175
#[doc(hidden)]
176176
pub type type_of_event_flag = u32;
177177
libc_bitflags! {

test/sys/test_socket.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::Path;
1010
use std::slice;
1111
use std::str::FromStr;
1212

13-
#[cfg(any(target_os = "linux"))]
13+
#[cfg(target_os = "linux")]
1414
#[cfg_attr(qemu, ignore)]
1515
#[test]
1616
pub fn test_timestamping() {
@@ -2082,7 +2082,7 @@ pub fn test_vsock() {
20822082
// Disable the test on emulated platforms because it fails in Cirrus-CI. Lack
20832083
// of QEMU support is suspected.
20842084
#[cfg_attr(qemu, ignore)]
2085-
#[cfg(all(target_os = "linux"))]
2085+
#[cfg(target_os = "linux")]
20862086
#[test]
20872087
fn test_recvmsg_timestampns() {
20882088
use nix::sys::socket::*;
@@ -2137,7 +2137,7 @@ fn test_recvmsg_timestampns() {
21372137
// Disable the test on emulated platforms because it fails in Cirrus-CI. Lack
21382138
// of QEMU support is suspected.
21392139
#[cfg_attr(qemu, ignore)]
2140-
#[cfg(all(target_os = "linux"))]
2140+
#[cfg(target_os = "linux")]
21412141
#[test]
21422142
fn test_recvmmsg_timestampns() {
21432143
use nix::sys::socket::*;

0 commit comments

Comments
 (0)