diff --git a/crates/bevy_app/src/lib.rs b/crates/bevy_app/src/lib.rs index ff680e4f04..b9e2902961 100644 --- a/crates/bevy_app/src/lib.rs +++ b/crates/bevy_app/src/lib.rs @@ -7,6 +7,7 @@ )] #![cfg_attr(any(docsrs, docsrs_dep), feature(doc_auto_cfg, rustdoc_internals))] #![forbid(unsafe_code)] +#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] #![doc( html_logo_url = "https://bevyengine.org/assets/icon.png", html_favicon_url = "https://bevyengine.org/assets/icon.png" diff --git a/crates/bevy_app/src/plugin.rs b/crates/bevy_app/src/plugin.rs index 724dbfde93..af6238428f 100644 --- a/crates/bevy_app/src/plugin.rs +++ b/crates/bevy_app/src/plugin.rs @@ -183,7 +183,10 @@ mod sealed { where $($plugins: Plugins<$param>),* { - // We use `allow` instead of `expect` here because the lint is not generated for all cases. + #[expect( + clippy::allow_attributes, + reason = "This is inside a macro, and as such, may not trigger in all cases." + )] #[allow(non_snake_case, reason = "`all_tuples!()` generates non-snake-case variable names.")] #[allow(unused_variables, reason = "`app` is unused when implemented for the unit type `()`.")] #[track_caller]