Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net-types] Change IP Display to match rust #112606
This CL changes the Display impl for net_types::ip::Ipv6Addr to match std::net::Ipv6Addr and re-enables the `test_ipv6_display` test which was disabled in Ie459a53094b958b752e75e5cf86baa6f55bdade6. The change follows rust-lang/rust#112606, which stops formatting IPv4-compatible addresses as "::a.b.c.d". IPv4-mapped addresses continue to be treated specially ("::ffff:a.b.c.d"). Test: fx test net_types_lib_test -- ip::tests::test_ipv6_display Bug: 126927 Change-Id: I854f2bf8ba42b3e1eedceb2a5a70e8ca1da17a4b Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/873716 Reviewed-by: Joshua Liebow-Feeser <[email protected]> Commit-Queue: Mitchell Kember <[email protected]>
- Loading branch information