diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-08-21 22:14:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-21 22:14:13 +0000 |
commit | 426b09aad926802437fcedf60ca3709a288729af (patch) | |
tree | 381f59e37fb5210682de8ca183874a4390a74f78 /src/sys/socket | |
parent | 8866df67e3601fdce1c0794ad03a01579f8aa0f7 (diff) | |
parent | c96141d423eb415ba9720519794f6448044006f0 (diff) | |
download | nix-426b09aad926802437fcedf60ca3709a288729af.zip |
Merge #1495
1495: Deprecate SockAddr/InetAddr::to_str r=asomers a=coolreader18
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
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) } |