mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-15 16:43:00 +00:00
cargo fmt
This commit is contained in:
@ -194,7 +194,7 @@ impl FromStr for Ipv4Network {
|
||||
let addr = parse_addr(addr_str)?;
|
||||
let prefix = if prefix_str.is_empty() {
|
||||
IPV4_BITS
|
||||
}else {
|
||||
} else {
|
||||
parse_prefix(prefix_str, IPV4_BITS)?
|
||||
};
|
||||
Ipv4Network::new(addr, prefix)
|
||||
|
@ -174,7 +174,7 @@ impl FromStr for Ipv6Network {
|
||||
.map_err(|_| IpNetworkError::InvalidAddr(addr_str.to_string()))?;
|
||||
let prefix = if prefix_str.is_empty() {
|
||||
IPV6_BITS
|
||||
}else {
|
||||
} else {
|
||||
parse_prefix(prefix_str, IPV6_BITS)?
|
||||
};
|
||||
Ipv6Network::new(addr, prefix)
|
||||
|
Reference in New Issue
Block a user