We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HostnamePort::localhost(u16)
HostnamePort
We currently use HostnamePort::new("127.0.0.1", 0) which returns a result, and in this case, we know it's a valid hostname.
HostnamePort::new("127.0.0.1", 0)
Add a new constructor HostnamePort::localhost(u16) that doesn't return a Result and replace usages.
Result
The text was updated successfully, but these errors were encountered:
Hi, I'd like to take this on.
Sorry, something went wrong.
No branches or pull requests
Current behavior
We currently use
HostnamePort::new("127.0.0.1", 0)
which returns a result, and in this case, we know it's a valid hostname.Desired behavior
Add a new constructor
HostnamePort::localhost(u16)
that doesn't return aResult
and replace usages.The text was updated successfully, but these errors were encountered: