-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
use TryInto<SocketAddress> bound for bind/listen functions in rama #402
Conversation
I actually wanted to ask a bit about the error types, I've marked them as io::Error in the bounds since the functions originally returned a result type with an io::Error but I can see that this is causing issues with the callers as not all TryInto are implemented with that. |
So in this case we do not control all the different possible types that can be turned into a As such I would just turn these errors into a Hope this helps you out together with my comments on your code. Thank you for the swift resolution by te way, greatly appreciated. |
LMK if anything else is required |
Is it possible that you forget to push that "last" commit mentioned in the comments? I still see |
Yeah, sorry about that 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, seems flawless. Thank you very much for this swift and great first contribution!
@fa993 there are some errors, not your fault, but more showing that the work is sadly still incomplete. Like described before, the goal was to keep this change non-breaking. Atm this fails:
Meaning that Problem is that it implements this: impl<T: ToSocketAddrs + ?Sized> ToSocketAddrs for &T We cannot implement that. But perhaps you can atleast implement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the tests pass regarding &String -> SocketAddress
I'll re-evaluate if we can merge, which I think should be possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this extra mile. Great work. Take care!
Closes #400