Skip to content

Commit d611a9a

Browse files
author
Al Hoang
committed
haiku: cleanup unneeded any
1 parent 95af0c8 commit d611a9a

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"))]
@@ -2410,13 +2410,13 @@ mod datalink {
24102410

24112411
impl LinkAddr {
24122412
/// interface index, if != 0, system given index for interface
2413-
#[cfg(not(any(target_os = "haiku")))]
2413+
#[cfg(not(target_os = "haiku"))]
24142414
pub fn ifindex(&self) -> usize {
24152415
self.0.sdl_index as usize
24162416
}
24172417

24182418
/// Datalink type
2419-
#[cfg(not(any(target_os = "haiku")))]
2419+
#[cfg(not(target_os = "haiku"))]
24202420
pub fn datalink_type(&self) -> u8 {
24212421
self.0.sdl_type
24222422
}
@@ -2432,7 +2432,7 @@ mod datalink {
24322432
}
24332433

24342434
/// link layer selector length
2435-
#[cfg(not(any(target_os = "haiku")))]
2435+
#[cfg(not(target_os = "haiku"))]
24362436
pub fn slen(&self) -> usize {
24372437
self.0.sdl_slen as usize
24382438
}

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)