summaryrefslogtreecommitdiff
path: root/src/sys/socket/sockopt.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2023-05-21 08:52:42 -0600
committerAlan Somers <asomers@gmail.com>2023-05-21 08:52:42 -0600
commite42c3589a3c17e69043bc76c9a087acf6e5cb83e (patch)
tree389dc5b02b55b90b3af387c465f33ff1a16bf397 /src/sys/socket/sockopt.rs
parentae6699940e8fc75008f94312f189892efdcfb2f0 (diff)
downloadnix-e42c3589a3c17e69043bc76c9a087acf6e5cb83e.zip
Clippy cleanup:
fix the new clippy::non_minimal_cfg lint
Diffstat (limited to 'src/sys/socket/sockopt.rs')
-rw-r--r--src/sys/socket/sockopt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs
index a18b5905..d5bcda4c 100644
--- a/src/sys/socket/sockopt.rs
+++ b/src/sys/socket/sockopt.rs
@@ -683,7 +683,7 @@ sockopt_impl!(
libc::IP6T_SO_ORIGINAL_DST,
libc::sockaddr_in6
);
-#[cfg(any(target_os = "linux"))]
+#[cfg(target_os = "linux")]
sockopt_impl!(
/// Specifies exact type of timestamping information collected by the kernel
/// [Further reading](https://www.kernel.org/doc/html/latest/networking/timestamping.html)
@@ -702,7 +702,7 @@ sockopt_impl!(
libc::SO_TIMESTAMP,
bool
);
-#[cfg(all(target_os = "linux"))]
+#[cfg(target_os = "linux")]
sockopt_impl!(
/// Enable or disable the receiving of the `SO_TIMESTAMPNS` control message.
ReceiveTimestampns,