Skip to content

Commit 17d0cc5

Browse files
author
Al Hoang
committed
haiku: remove extra any
1 parent 237d682 commit 17d0cc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ impl ControlMessageOwned {
846846
let cred: libc::cmsgcred = ptr::read_unaligned(p as *const _);
847847
ControlMessageOwned::ScmCreds(cred.into())
848848
}
849-
#[cfg(not(any(target_os = "haiku")))]
849+
#[cfg(not(target_os = "haiku"))]
850850
(libc::SOL_SOCKET, libc::SCM_TIMESTAMP) => {
851851
let tv: libc::timeval = ptr::read_unaligned(p as *const _);
852852
ControlMessageOwned::ScmTimestamp(TimeVal::from(tv))

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ sockopt_impl!(
470470
/// Specifies exact type of timestamping information collected by the kernel
471471
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
472472
Timestamping, Both, libc::SOL_SOCKET, libc::SO_TIMESTAMPING, super::TimestampingFlag);
473-
#[cfg(not(any(target_os = "haiku")))]
473+
#[cfg(not(target_os = "haiku"))]
474474
sockopt_impl!(
475475
/// Enable or disable the receiving of the `SO_TIMESTAMP` control message.
476476
ReceiveTimestamp, Both, libc::SOL_SOCKET, libc::SO_TIMESTAMP, bool);

0 commit comments

Comments
 (0)