Skip to content

Commit

Permalink
Fix incorrect deprecation suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Sep 11, 2023
1 parent d762efb commit b4e3420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NonZeroU32>) -> io::Result<()> {
self.bind_device_by_index_v4(interface)
}
Expand Down

0 comments on commit b4e3420

Please sign in to comment.