Skip to content
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

Clippy style #839

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

Philippe-Cholet
Copy link
Member

Credits to #618. I selected what bugged me the most, I cherry picked or run a command line myself:

  • Use Self whenever possible ;
  • Avoid "type repetition in bounds" and even duplicated bounds.

It's gonna lead me to closing #618 soon.

Philippe-Cholet and others added 2 commits January 10, 2024 16:03
Two simple steps:
- run `cargo clippy --fix -- -D clippy::use_self`
- In `either_or_both`, remove `Self::` as glob use is quite convenient.

https://rust-lang.github.io/rust-clippy/master/index.html#/use_self

Co-Authored-By: Marcel Hellwig <[email protected]>
Copy link
Member

@jswrenn jswrenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Philippe-Cholet Philippe-Cholet added this pull request to the merge queue Jan 10, 2024
Merged via the queue into rust-itertools:master with commit 1fb979b Jan 10, 2024
8 checks passed
@Philippe-Cholet Philippe-Cholet deleted the clippy-style branch January 10, 2024 18:42
@Philippe-Cholet Philippe-Cholet added this to the next milestone Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants