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

fix(derive): Allow clippy::almost_swapped #4735

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

rkrasiuk
Copy link
Contributor

Closes #4733

@rkrasiuk rkrasiuk changed the title fix(derive): avoid arg reassignment in gen_augment fix(derive): Avoid arg reassignment in gen_augment Feb 27, 2023
@rkrasiuk rkrasiuk force-pushed the rkrasiuk/fix-almost-swapped-lint branch from 7229ca6 to c1caf46 Compare February 27, 2023 10:47
@rkrasiuk rkrasiuk force-pushed the rkrasiuk/fix-almost-swapped-lint branch from c1caf46 to 322b813 Compare February 27, 2023 17:31
@rkrasiuk rkrasiuk changed the title fix(derive): Avoid arg reassignment in gen_augment fix(derive): Allow clippy::almost_swapped Feb 27, 2023
@rkrasiuk rkrasiuk force-pushed the rkrasiuk/fix-almost-swapped-lint branch from 322b813 to 872135b Compare February 27, 2023 17:35
@epage
Copy link
Member

epage commented Feb 27, 2023

Thanks!

@epage epage merged commit c3a942e into clap-rs:master Feb 27, 2023
@rkrasiuk rkrasiuk deleted the rkrasiuk/fix-almost-swapped-lint branch February 27, 2023 20:54
@rkrasiuk rkrasiuk restored the rkrasiuk/fix-almost-swapped-lint branch February 27, 2023 22:51
hds added a commit to hds/clap that referenced this pull request Apr 27, 2023
As of Rust 1.69, the `clippy::almost_swapped` lint was enhanced and now
triggers on certain derive macros inside clap. To avoid the need for the
user to allow these lints outside of the macro (which generally requires
a module level `allow`), the allow was added to the generated code for
the v4 branch in clap-rs#4735.

This change backports that fix the the `v3-master` branch.

Fixes: clap-rs#4857
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.

clippy::almost_swapped check failing on latest nightly
2 participants