From b4e3420743896be8c13fd49466f4a23b691f3bea Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Mon, 11 Sep 2023 18:54:35 +0200 Subject: [PATCH] Fix incorrect deprecation suggestion --- src/sys/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/unix.rs b/src/sys/unix.rs index a0b70a7b..244117b5 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -1876,7 +1876,7 @@ impl crate::Socket { ) ))) )] - #[deprecated = "Use `Socket::device_index_v4` instead"] + #[deprecated = "Use `Socket::bind_device_by_index_v4` instead"] pub fn bind_device_by_index(&self, interface: Option) -> io::Result<()> { self.bind_device_by_index_v4(interface) }