-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove unnecessary clones with clippy #12197
Remove unnecessary clones with clippy #12197
Conversation
This is automated change done with ``` cargo clippy --fix -- -Aclippy::all -Wclippy::redundant_clone cargo fmt # manually fix few new clippy errors introduced by clippy itself ``` Note: it doesn't remove all unnecessary clones because the command reported error and backed out for the common crate.
d1c824f
to
3724a74
Compare
clippy can be run with `--fix` and then it won't obey the code comment instructing not to delete the clone.
Change code as instructed by ``` cargo clippy --fix -- -Aclippy::all -Wclippy::redundant_clone ``` where clippy didn't apply the suggested changes by itself.
Note 1: Note 2 |
thank you @crepererum and @andygrove for review and thanks @crepererum for the merge! BTW by any chance, do you have thoughts on |
I think we can tighten the linting rules for DF. In this case, add them here and fix the fall-out in the same PR: Lines 160 to 162 in 8ba6732
|
See individual commit descriptions.