-
Notifications
You must be signed in to change notification settings - Fork 82
Fix clippy error to add clippy job on Ci #659
Conversation
665: Fixing piles of clippy errors. r=ManyTheFish a=ehiggs ## Related issue No issue fixed. Simply cleaning up some code for clippy on the march towards a clean build when #659 is merged. ## What does this PR do? Most of these are calling clone when the struct supports Copy. Many are using & and &mut on `self` when the function they are called from already has an immutable or mutable borrow so this isn't needed. I tried to stay away from actual changes or places where I'd have to name fresh variables. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: Ewan Higgs <ewan.higgs@gmail.com>
@curquiza No problem, I'll fix the conflicts! |
@curquiza I've fixed conflicts by accepting all current (main) change. The last commit passes cargo clippy (but as I described, there are still warnings). |
For me it's ok for the CI side @ManyTheFish (or some else in @meilisearch/core-team) I let you review the code base part before merging |
bors try |
tryBuild failed: |
@unvalley looks like the CIs are all failing, could you fix this before the core team review your PR? |
bors try |
tryBuild failed: |
I have to fix all warnings to pass the CI. env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings" The RUSTFLAGS |
@unvalley, how big is it. Do you want to provide another PR before merging this one fixing all the conflicts? |
@curquiza |
@unvalley thank you very much this is really appreciated 🙏 |
@curquiza Could you try bors? 🙏 |
bors try |
tryBuild failed: |
bors try |
🔒 Permission denied Existing reviewers: click here to make unvalley a reviewer |
fixed rust fmt🔥 |
Bors try |
tryBuild failed: |
Remove clippy job Fix clippy error type_complexity Restore ambiguous change
Ok @unvalley! |
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.
Hey @unvalley, to me we're almost finished, there is just two last things that I would like to check but overall I think we can merge
Hey @unvalley, since this is quite a big PR and you had to rebase a lot of changes we wanted to thank you for your time and accept your contribution for the hacktoberfest even though we're probably not going to merge it before the end of the event. |
Co-authored-by: Tamo <irevoire@protonmail.ch>
@irevoire Thanks for letting me know! I completed the form. I'd like to contribute more. |
And thanks for being such reactive @unvalley! You are more than welcome to contributing again 😄 |
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.
Good to me, since the PR is quite large I'll let someone else from the @meilisearch/core-team double-review + merge
@Kerollmops could you take a look at it? And if you approve the PR, please merge 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.
There are a lot of changes but it looks good to me too!
Thank you very much ❤️
bors merge
Build succeeded: |
This message is sent automatically Thank you for contributing to Meilisearch. If you are participating in Hacktoberfest, and you would like to receive some gift from Meilisearch too, please complete this form. |
Related PR
This PR is for #673
What does this PR do?
addRun Clippy
job to CI (rust.yml)cargo clippy --fix
commandcargo clippy
error manually (but warnings still remain on tests)PR checklist
Please check if your PR fulfills the following requirements: