Ignore clippy lint in generated code by Jake-Shadle · Pull Request #331 · bitflags/bitflags · GitHub
Skip to content

Ignore clippy lint in generated code - #331

Merged
KodrAus merged 2 commits into
bitflags:mainfrom
EmbarkStudios:main
Apr 5, 2023
Merged

KodrAus merged 2 commits into
bitflags:mainfrom
EmbarkStudios:main

Conversation

@Jake-Shadle

@Jake-Shadle Jake-Shadle commented Apr 3, 2023 •

Copy link
Copy Markdown
Contributor

If a project enables clippy::indexing_slicing the code generated by the macro will emit the warning, which for many projects will also fail CI.

@Jake-Shadle

Copy link
Copy Markdown
Contributor Author

@KodrAus KodrAus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @Jake-Shadle 👍

We should probably add Clippy to our own CI too to make sure we catch these things rather than end-users having to.

@KodrAus
KodrAus merged commit db4ce36 into bitflags:main Apr 5, 2023
@Jake-Shadle

Copy link
Copy Markdown
Contributor Author

@KodrAus KodrAus mentioned this pull request Apr 5, 2023
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