Change return type of Ipv4Network::size to u32

Also, generalize size over IpvNetwork
NOTE: this is a breaking change
This commit is contained in:
Abhishek Chanda
2018-11-21 15:48:29 +00:00
parent 2bd3db84a8
commit 2b21f38171
3 changed files with 33 additions and 7 deletions

View File

@ -1,6 +1,5 @@
use std::error::Error;
use std::fmt;
use std::net::Ipv4Addr;
/// Represents a bunch of errors that can occur while working with a `IpNetwork`
#[derive(Debug, Clone, PartialEq, Eq)]