summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorNoah <33094578+coolreader18@users.noreply.github.com>2021-06-07 23:07:45 -0500
committerNoa <33094578+coolreader18@users.noreply.github.com>2021-08-21 16:59:35 -0500
commitc96141d423eb415ba9720519794f6448044006f0 (patch)
treed5124f7fc4817fc3500e6469af8bd9d170217b26 /test/sys
parent7207004e108ffbf52e64ed73fe7b43a28b4d5eab (diff)
downloadnix-c96141d423eb415ba9720519794f6448044006f0.zip
Deprecate SockAddr/InetAddr::to_str
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_socket.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs
index c43d0672..92bb30e0 100644
--- a/test/sys/test_socket.rs
+++ b/test/sys/test_socket.rs
@@ -28,7 +28,7 @@ pub fn test_inetv4_addr_to_sock_addr() {
_ => panic!("nope"),
}
- assert_eq!(addr.to_str(), "127.0.0.1:3000");
+ assert_eq!(addr.to_string(), "127.0.0.1:3000");
let inet = addr.to_std();
assert_eq!(actual, inet);
@@ -194,8 +194,8 @@ pub fn test_getsockname() {
.expect("socket failed");
let sockaddr = SockAddr::new_unix(&sockname).unwrap();
bind(sock, &sockaddr).expect("bind failed");
- assert_eq!(sockaddr.to_str(),
- getsockname(sock).expect("getsockname failed").to_str());
+ assert_eq!(sockaddr.to_string(),
+ getsockname(sock).expect("getsockname failed").to_string());
}
#[test]