From c96141d423eb415ba9720519794f6448044006f0 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:07:45 -0500 Subject: Deprecate SockAddr/InetAddr::to_str --- src/sys/socket/addr.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys/socket') diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index a964d61b..0f907bbe 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -344,6 +344,7 @@ impl InetAddr { } } + #[deprecated(since = "0.23.0", note = "use .to_string() instead")] pub fn to_str(&self) -> String { format!("{}", self) } @@ -722,6 +723,7 @@ impl SockAddr { } } + #[deprecated(since = "0.23.0", note = "use .to_string() instead")] pub fn to_str(&self) -> String { format!("{}", self) } -- cgit v1.2.3