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 #4866

Merged
merged 1 commit into from Apr 27, 2023

Conversation

hds
Copy link

@hds hds commented 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 #4735.

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

Fixes: #4857

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
@epage epage merged commit 4b7dbfb into clap-rs:v3-master Apr 27, 2023
19 of 20 checks passed
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.

None yet

2 participants