-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Needless Question Mark Lint #6507
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @flip1995 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
There are a number of matches in test code, most of which seems to be accurate. let err: i8 = 1;
// To avoid warnings during rustfix
if true {
Err(err)?;
}
Ok(i) While the |
Upon closer review, it appears that my lint did not trigger the aforementioned lines. |
ad01a29
to
bbe49d1
Compare
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 overall. After addressing the remaining 2 comments, please squash some of your commits (it doesn't have to be one commit, if you want to split it up a bit).
33da535
to
fe2082c
Compare
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.
The examples in the documentation seem weird to me. Otherwise LGTM.
2ee8533
to
85da53a
Compare
85da53a
to
ba87acb
Compare
@bors r+ Thanks! |
📌 Commit ba87acb has been approved by |
Needless Question Mark Lint Fixes #6410, i.e the needless question mark lint
💔 Test failed - checks-action_test |
@bors retry |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #6410, i.e the needless question mark lint
changelog: [
needless_question_mark
] New lint