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 clippy lints #270

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Fix clippy lints #270

merged 1 commit into from
Jun 6, 2024

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Jun 6, 2024

Updates the code to pass cargo clippy. Most of the fixes were auto-applied by Clippy.

@@ -1904,6 +1899,7 @@ fn validate_distribution(

let exported = context.libpython_exported_symbols.contains(&ext.init_fn);

#[allow(clippy::needless_bool, clippy::if_same_then_else)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opted to allow the if statements to keep their current structure though it is redundant because I find it quite clear this way and am not compelled to change the style.

Copy link
Collaborator

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

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

Thanks!

@charliermarsh charliermarsh merged commit 4c280e2 into indygreg:main Jun 6, 2024
238 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