Skip to content

Implement Default on IpNet, Ipv4Net, and Ipv6Net

Compare
Choose a tag to compare
@krisprice krisprice released this 16 Mar 01:24
· 73 commits to master since this release
  • Merge @imp's Default implementation. See #18. Ipv4Net and Ipv6Net now default to 0.0.0.0/0 and ::/0 respectively. IpNet defaults to the 0/0 Ipv4Net.

  • Add #[allow(arithmetic_overflow)] for Ipv4AddrRange::count() and Ipv6AddrRange::count(). Since 1.43.0-nightly it gives a build error but this panic behavior is desired. In future it may be replaced with explicit use of panic!. See #21.