-
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
add new lint seek_to_start_instead_of_rewind
#9667
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @giraffate (or someone else) soon. Please see the contribution instructions for more information. |
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.
Sorry, I forgot msrv
in the first review. The rewind
was implemented at 1.55.0, so this need to implement msrv
: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/adding_lints.md#specifying-the-lints-minimum-supported-rust-version-msrv
The PR below would be helpful to implement msvr
: #8692
☔ The latest upstream changes (presumably #9688) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #9541) made this pull request unmergeable. Please resolve the merge conflicts. |
I'll merge this once the conflicts are resolved. |
Signed-off-by: Doru-Florin Blanzeanu <blanzeanu.doru@protonmail.com>
Signed-off-by: Doru-Florin Blanzeanu <blanzeanu.doru@protonmail.com>
Jumping in late here but I think the lint name should be Also sorry for causing you two conflicts in 24 hours 😄 |
It depends on how you look at it, but now that you pointed it out, it looks odd. No worries about the conflicts 😄 |
Yeah that's fine by me |
- This name makes more sense and highlights the issue Signed-off-by: Doru-Florin Blanzeanu <blanzeanu.doru@protonmail.com>
rewind_instead_of_seek_to_start
seek_to_start_instead_of_rewind
@Alexendoo Thanks for your review! |
@bors r+ Thanks! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog:
seek_to_start_instead_of_rewind
: new lint to suggest usingrewind
instead ofseek
to startResolve #8600