From 900509bec0e334b6e85d95d8faa1eec99d2a8351 Mon Sep 17 00:00:00 2001 From: MichiRecRoom <1008889+LikeLakers2@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:26:44 -0500 Subject: [PATCH] bevy_utils: Apply `#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]` (#17305) # Objective - https://github.com/bevyengine/bevy/issues/17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_utils` in line with the new restrictions. ## Testing `cargo clippy --tests --all-features --package bevy_utils` was run, and no errors were encountered. --- crates/bevy_utils/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index 0fd3fa6a7e..48de586fe5 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -1,3 +1,8 @@ +#![deny( + clippy::allow_attributes, + clippy::allow_attributes_without_reason, + reason = "See #17111; To be removed once all crates are in-line with these attributes" +)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![doc( html_logo_url = "https://bevyengine.org/assets/icon.png",