-
Notifications
You must be signed in to change notification settings - Fork 999
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: mark {In, Out}boundOpenInfo as deprecated #5242
Conversation
@jxs Got a moment to review this? It seems that I cannot assign a reviewer because I don't have the permission, so I have to do an @ mention. |
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.
Thank you @drHuangMHT, for this PR, and all of your recent contributions in general!
I think we might be able to avoid some of the #[allow(deprecated)]
if we add defaults to the types that currently include {Inbound, Outbound}Info
generics (if they are trailing), e.g. to ConnectionEvent
. That way the deprecated types won't need to be mentioned by the handlers anymore. Wdyt?
What about those that are not(whose OpenInfo generic parameter in the middle)? I gave it a shot and it came out quite terrible because I had to reorder the parameters in every implementation. I think the impact will basically be the same as we outright removed |
Yeah, I'd leave those as they are (=> your current implementation). |
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.
One more comment about using expect
instead of allow
in all places, rest lgtm!
Waiting for #5730 for better handling of deprecation warning bypass? |
expect(lint) emits lint message when the expected lint is not triggered
Clippy failing on beta is unrelated, will be fixed with #5802. Only thing missing is a CHANGELOG entry. It would be great if the entry could be a bit more verbose, so that users know why it
|
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.
LGTM, thanks for this @drHuangMHT! And @elenaf9 for the review!
This pull request has been removed from the queue for the following reason: The pull request can't be updated You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
Wasn't the CHANGELOG entry still missing? Or did I just not see it? |
Looks like it is missing (thought the CI would have catched that?) |
Our CI only checks for a CHANGELOG entry if it's not @drHuangMHT would you mind creating a follow-up PR to amend the CHANGELOGs? I think we might even need a CHANGELOG entry in each crate that was touched in this PR. |
changelog is still missing |
Description
Mark
{In, Out}boundOpenInfo
as deprecated.May close #3268.
Notes & open questions
I'm putting off formatting until the change has been accepted for clearer diff.
I have changed all occurrence of OpenInfo with concrete type wherever possible to avoid excessive use of
#[allow(deprecated)]
. Is this optimal ?Change checklist