-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
bevy_pbr: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17277
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
bevy_pbr: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17277
Conversation
…hout_reason)]` to bevy_pbr
| #![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")] | ||
| #![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
| #![deny(unsafe_code)] | ||
| #![forbid(unsafe_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I searched through bevy_pbr, and found no unsafe code - so I figured this was meant to be a forbid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how all those unused_variable lints survived for so long, shows why this is a good change.
…x_lut()`, per suggestion from Benjamin
…r-loops easier to understand than `core::array::from_fn`
1a90a60 to
53c979d
Compare
… find for-loops easier to understand than `core::array::from_fn`" This reverts commit 53c979d.
…ibutes_without_reason)]` (bevyengine#17277) # Objective - bevyengine#17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_pbr` in line with the new restrictions. ## Testing `cargo clippy --tests --package bevy_pbr` was run, and no errors were encountered.
Objective
clippy::allow_attributesandclippy::allow_attributes_without_reasonlints #17111Solution
Set the
clippy::allow_attributesandclippy::allow_attributes_without_reasonlints todeny, and bringbevy_pbrin line with the new restrictions.Testing
cargo clippy --tests --package bevy_pbrwas run, and no errors were encountered.