diff options
Diffstat (limited to 'src/libstd/io/net/ip.rs')
| -rw-r--r-- | src/libstd/io/net/ip.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/io/net/ip.rs b/src/libstd/io/net/ip.rs index 4bf71b5480e..5004e8a5a07 100644 --- a/src/libstd/io/net/ip.rs +++ b/src/libstd/io/net/ip.rs @@ -445,8 +445,8 @@ mod test { #[test] fn ipv6_addr_to_str() { let a1 = Ipv6Addr(0, 0, 0, 0, 0, 0xffff, 0xc000, 0x280); - assert!(a1.to_str() == "::ffff:192.0.2.128".to_strbuf() || - a1.to_str() == "::FFFF:192.0.2.128".to_strbuf()); - assert_eq!(Ipv6Addr(8, 9, 10, 11, 12, 13, 14, 15).to_str(), "8:9:a:b:c:d:e:f".to_strbuf()); + assert!(a1.to_str() == "::ffff:192.0.2.128".to_string() || + a1.to_str() == "::FFFF:192.0.2.128".to_string()); + assert_eq!(Ipv6Addr(8, 9, 10, 11, 12, 13, 14, 15).to_str(), "8:9:a:b:c:d:e:f".to_string()); } } |
