-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
bevy_pbr: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17277
Conversation
…hout_reason)]` to bevy_pbr
@@ -1,6 +1,11 @@ | |||
#![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.
Objective
clippy::allow_attributes
andclippy::allow_attributes_without_reason
lints #17111Solution
Set the
clippy::allow_attributes
andclippy::allow_attributes_without_reason
lints todeny
, and bringbevy_pbr
in line with the new restrictions.Testing
cargo clippy --tests --package bevy_pbr
was run, and no errors were encountered.