Skip to content

Commit c4eee55

Browse files
author
Al Hoang
committed
haiku: cleanup unneeded any
1 parent 67d5bd5 commit c4eee55

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/sys/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ feature! {
5252
pub mod memfd;
5353
}
5454

55-
#[cfg(not(any(target_os = "redox")))]
55+
#[cfg(not(target_os = "redox"))]
5656
feature! {
5757
#![feature = "mman"]
5858
pub mod mman;
@@ -126,7 +126,7 @@ feature! {
126126
pub mod signalfd;
127127
}
128128

129-
#[cfg(not(any(target_os = "redox")))]
129+
#[cfg(not(target_os = "redox"))]
130130
feature! {
131131
#![feature = "socket"]
132132
#[allow(missing_docs)]

src/sys/socket/addr.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub enum AddressFamily {
121121
#[cfg_attr(docsrs, doc(cfg(all())))]
122122
Rose = libc::AF_ROSE,
123123
/// DECet protocol sockets.
124-
#[cfg(not(any(target_os = "haiku")))]
124+
#[cfg(not(target_os = "haiku"))]
125125
Decnet = libc::AF_DECnet,
126126
/// Reserved for "802.2LLC project"; never used.
127127
#[cfg(any(target_os = "android", target_os = "linux"))]
@@ -153,7 +153,7 @@ pub enum AddressFamily {
153153
#[cfg_attr(docsrs, doc(cfg(all())))]
154154
Rds = libc::AF_RDS,
155155
/// IBM SNA
156-
#[cfg(not(any(target_os = "haiku")))]
156+
#[cfg(not(target_os = "haiku"))]
157157
Sna = libc::AF_SNA,
158158
/// Socket interface over IrDA
159159
#[cfg(any(target_os = "android", target_os = "linux"))]
@@ -2432,13 +2432,13 @@ mod datalink {
24322432

24332433
impl LinkAddr {
24342434
/// interface index, if != 0, system given index for interface
2435-
#[cfg(not(any(target_os = "haiku")))]
2435+
#[cfg(not(target_os = "haiku"))]
24362436
pub fn ifindex(&self) -> usize {
24372437
self.0.sdl_index as usize
24382438
}
24392439

24402440
/// Datalink type
2441-
#[cfg(not(any(target_os = "haiku")))]
2441+
#[cfg(not(target_os = "haiku"))]
24422442
pub fn datalink_type(&self) -> u8 {
24432443
self.0.sdl_type
24442444
}
@@ -2454,7 +2454,7 @@ mod datalink {
24542454
}
24552455

24562456
/// link layer selector length
2457-
#[cfg(not(any(target_os = "haiku")))]
2457+
#[cfg(not(target_os = "haiku"))]
24582458
pub fn slen(&self) -> usize {
24592459
self.0.sdl_slen as usize
24602460
}

src/sys/termios.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl From<BaudRate> for u32 {
375375
}
376376
}
377377

378-
#[cfg(any(target_os = "haiku"))]
378+
#[cfg(target_os = "haiku")]
379379
impl From<BaudRate> for u8 {
380380
fn from(b: BaudRate) -> u8 {
381381
b as u8

0 commit comments

Comments
 (0)