Skip to content

Commit 3aa89e1

Browse files
authored
bevy_ptr: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17214)
# Objective - #17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_ptr` in line with the new restrictions. ## Testing `cargo clippy --tests` was run, and no errors were encountered. I was expecting this crate to give more of a fight.
1 parent a2ae7e9 commit 3aa89e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_ptr/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#![no_std]
33
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
44
#![expect(unsafe_code, reason = "Raw pointers are inherently unsafe.")]
5+
#![deny(
6+
clippy::allow_attributes,
7+
clippy::allow_attributes_without_reason,
8+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
9+
)]
510
#![doc(
611
html_logo_url = "https://bevyengine.org/assets/icon.png",
712
html_favicon_url = "https://bevyengine.org/assets/icon.png"

0 commit comments

Comments
 (0)