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

Don't run clippy on bindgen files. Added all the lints for build.rs. #78

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

Grinkers
Copy link
Collaborator

This should help #76

This is just allowing all clippy lints of generated code, as there's no point in linting bindgen. There's not much code in build.rs, so I just added all the lints and did the appropriate fixes.

You can see it properly failing here
Grinkers@fe8ef33

Passing with the newest bindgen
Grinkers@5eab029

@Grinkers Grinkers requested a review from newAM August 20, 2024 15:03
Copy link
Member

@newAM newAM left a comment

Choose a reason for hiding this comment

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

Thanks for the build.rs cleanup!

src/lib.rs Outdated
Comment on lines 3 to 7
future_incompatible,
non_camel_case_types,
non_snake_case,
non_upper_case_globals,
unsafe_code
Copy link
Member

Choose a reason for hiding this comment

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

The 0.70.1 release fixed some of these, can you update it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Grinkers
Copy link
Collaborator Author

Grinkers@d016cc4
still properly fails after rebasing and cleaning up

@Grinkers Grinkers requested a review from newAM August 25, 2024 00:30
Copy link
Member

@newAM newAM left a comment

Choose a reason for hiding this comment

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

Thanks!

@newAM newAM merged commit d44c37c into ftdi-rs:main Aug 25, 2024
20 checks passed
@Grinkers Grinkers deleted the ci_clippy branch August 25, 2024 00:56
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.

2 participants