-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi there, thanks for maintaining this crate!
At our workplace we ran into an issue where we were accidentally converting an Ipv6Addr to an Ipv6Network. The conversion seems a bit risky because an address and a network represent different things.
In contrast, From<Ipv4Network> for IpNetwork and From<Ipv6Network> for IpNetwork are reasonable to have.
Would you consider removing these impls and maybe introducing single constructors to represent the single IP use case? That would have made this bug much easier to spot.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels