-
Notifications
You must be signed in to change notification settings - Fork 961
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
Refactor Yamux::close
to use ?
#2677
Conversation
muxers/yamux/src/lib.rs
Outdated
Some(Ok(_)) => {} // drop inbound stream | ||
Some(Err(e)) => return Poll::Ready(Err(e)), | ||
|
||
while let Poll::Ready(_inbound_stream) = |
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.
while let Poll::Ready(_inbound_stream) = | |
while let Poll::Ready(inbound_stream) = |
Why prefix inbound_stream
with an _
?
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.
To make it more obvious that it will be unused but I guess technically it is not unused!
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.
I've tried to improve this with 6eb64fe.
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!
Description
(Hopefully) improves readability of the implementation due to reduced noise.
Links to any relevant issues
Extracted out of #2648.
Open Questions
Change checklist