mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-18 01:38:51 +00:00
Remove the unnecessary parentheses
This commit is contained in:
@ -52,7 +52,7 @@ impl Ipv4Network {
|
||||
|
||||
pub fn contains(&self, ip: Ipv4Addr) -> bool {
|
||||
let (_, net) = self.network();
|
||||
return ((u32::from(ip) & net) == net)
|
||||
return (u32::from(ip) & net) == net
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user