From d6e9681e3fc1b27f47ec782fe570f740c86761d4 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sat, 25 Jan 2025 10:57:54 +0100 Subject: [PATCH 1/2] Remove Socket::(set_)header_included Replaced by Socket::(set_)header_included_v4. --- src/socket.rs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/socket.rs b/src/socket.rs index 698d3556..fa0285e1 100644 --- a/src/socket.rs +++ b/src/socket.rs @@ -1139,16 +1139,6 @@ const fn into_linger(duration: Option) -> sys::linger { /// * Linux: /// * Windows: impl Socket { - /// This method is deprecated, use [`crate::Socket::header_included_v4`]. - #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] - #[cfg_attr( - docsrs, - doc(cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))) - )] - #[deprecated = "Use `Socket::header_included_v4` instead"] - pub fn header_included(&self) -> io::Result { - self.header_included_v4() - } /// Get the value of the `IP_HDRINCL` option on this socket. /// /// For more information about this option, see [`set_header_included`]. @@ -1166,21 +1156,6 @@ impl Socket { } } - /// This method is deprecated, use [`crate::Socket::set_header_included_v4`]. - #[cfg_attr( - any(target_os = "fuchsia", target_os = "illumos", target_os = "solaris"), - allow(rustdoc::broken_intra_doc_links) - )] - #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] - #[cfg_attr( - docsrs, - doc(cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))) - )] - #[deprecated = "Use `Socket::set_header_included_v4` instead"] - pub fn set_header_included(&self, included: bool) -> io::Result<()> { - self.set_header_included_v4(included) - } - /// Set the value of the `IP_HDRINCL` option on this socket. /// /// If enabled, the user supplies an IP header in front of the user data. From 0f55e02fdf0ce8df9871e379fd6ce6fbebb200b2 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sat, 25 Jan 2025 11:04:41 +0100 Subject: [PATCH 2/2] Fix doc links --- src/socket.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/socket.rs b/src/socket.rs index fa0285e1..66b8420d 100644 --- a/src/socket.rs +++ b/src/socket.rs @@ -1141,9 +1141,9 @@ const fn into_linger(duration: Option) -> sys::linger { impl Socket { /// Get the value of the `IP_HDRINCL` option on this socket. /// - /// For more information about this option, see [`set_header_included`]. + /// For more information about this option, see [`set_header_included_v4`]. /// - /// [`set_header_included`]: Socket::set_header_included + /// [`set_header_included_v4`]: Socket::set_header_included_v4 #[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))] #[cfg_attr( docsrs, @@ -1654,9 +1654,9 @@ impl Socket { impl Socket { /// Get the value of the `IP_HDRINCL` option on this socket. /// - /// For more information about this option, see [`set_header_included`]. + /// For more information about this option, see [`set_header_included_v6`]. /// - /// [`set_header_included`]: Socket::set_header_included + /// [`set_header_included_v6`]: Socket::set_header_included_v6 #[cfg(all( feature = "all", not(any(