Use std::net::SocketAddr
instead of address (String
) and port (u16
) in config
#1000
Labels
suggestion
A suggestion to change functionality
Is there any particular reason why this isn't being used currently?
SocketAddr
has been stable since 1.0.0, and allows for parsing/stringifying both IPv4 and IPv6 addresses (including ports). As a bonus, this would slightly reduce the amount of work on Rocket's side, since you wouldn't need to parse it yourself.Needless to say this would be a breaking change, so 0.5 at the minimum.
The text was updated successfully, but these errors were encountered: