diff options
author | Noah <33094578+coolreader18@users.noreply.github.com> | 2021-06-07 23:07:45 -0500 |
---|---|---|
committer | Noa <33094578+coolreader18@users.noreply.github.com> | 2021-08-21 16:59:35 -0500 |
commit | c96141d423eb415ba9720519794f6448044006f0 (patch) | |
tree | d5124f7fc4817fc3500e6469af8bd9d170217b26 /src/sys/socket | |
parent | 7207004e108ffbf52e64ed73fe7b43a28b4d5eab (diff) | |
download | nix-c96141d423eb415ba9720519794f6448044006f0.zip |
Deprecate SockAddr/InetAddr::to_str
Diffstat (limited to 'src/sys/socket')
-rw-r--r-- | src/sys/socket/addr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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) } |