From 7ddf5e5c3390cea4d9e77a566f9b3d70b8ed5883 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 1 Dec 2021 18:09:03 +0100 Subject: [PATCH] minidom: Replace IPv4 test with IPv6 This makes the tests pass again on nightly, and avoids using legacy IP while we have glorious IPv6 support everywhere nowadays. See also https://github.com/rust-lang/rust/issues/90199 --- minidom/src/convert.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minidom/src/convert.rs b/minidom/src/convert.rs index 923918f..81328b1 100644 --- a/minidom/src/convert.rs +++ b/minidom/src/convert.rs @@ -84,11 +84,11 @@ mod tests { assert_eq!(18i32.into_attribute_value().unwrap(), "18"); assert_eq!((-19i64).into_attribute_value().unwrap(), "-19"); assert_eq!( - IpAddr::from_str("127.000.0.1") + IpAddr::from_str("0000:0::1") .unwrap() .into_attribute_value() .unwrap(), - "127.0.0.1" + "::1" ); } }