-
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
Prefer Seek#rewind()
over Seek#seek(SeekFrom::Start(0))
#8600
Comments
seems interesting... on a second thought... maybe it'd be better to give other people this chance consider it's a good-first-issue~ |
@rustbot claim @J-ZhengLi I'm still new to Rust and this would be my first contribution to clippy so would you be available for questions if I run into issues? |
Sure, but I doubt if I could be anyway near as helpful as the official members lol. |
A quick update: |
Is it okay if I take over this one? |
@brleinad Ping me when you continue working on this. I've prepared a draft commit (for my learning purposes) which is partially done. I can share it with you since maybe it can help you. |
Thanks for that @Rqnsom! Life has been too busy in the last few weeks to work on any Rust projects 😢 so feel free to take this over. I'm sorry for the late reply. |
@Rqnsom Are you still working on this? |
Not really. Wanted to. But I couldn't find the time. |
I would like to give it a go if nobody else is working on this, it would be my first contribution to clippy. @rustbot claim |
What it does
Suggests using the helper shortcut method, which is shorter.
https://doc.rust-lang.org/stable/std/io/trait.Seek.html#method.rewind
Lint Name
No response
Category
No response
Advantage
No response
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: