Changed
-
Breaking:
Netv4Addr::addr
,Netv4Addr::mask
,Netv6Addr::addr
, andNetv6Addr::mask
all now returnIpv4Addr
orIpv6Addr
respectively instead of&Ipv4Addr
or&Ipv6Addr
. -
Breaking: Replaced the
derive
'dOrd
impl with our own explicit implementation.
If you were using our old ordering, bare in mind that the behavior has changed.Previously, we just used the derived
Ord
comparison on the underlyingIp<...>Addr
structs in field-wise ordering.
Now, aNet<...>Addr
struct is considered greater than another if itsaddr
is equal but its mask is greater, or otherwise if itsaddr
is greater.
For example,1.0.0.0/8
<2.0.0.0/8
,1.0.0.0/7
<1.0.0.0/8
, etc. -
Internal fixes for the tests
-
Adjusted CI configuration