Skip to content

Commit 21c1b6a

Browse files
authored
Update all previously-merged #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] attributes to include a reason field pointing to the tracking issue (#17136)
# Objective Ensure the deny lint attributes added as a result of #17111 point to the tracking issue. ## Solution Change all existing instances of: ```rust #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] ``` to ```rust #![deny( clippy::allow_attributes, clippy::allow_attributes_without_reason, reason = "See #17111; To be removed once all crates are in-line with these attributes" )] ``` ## Testing N/A
1 parent 22ab715 commit 21c1b6a

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

crates/bevy_a11y/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#![forbid(unsafe_code)]
2-
#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
2+
#![deny(
3+
clippy::allow_attributes,
4+
clippy::allow_attributes_without_reason,
5+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
6+
)]
37
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
48
#![doc(
59
html_logo_url = "https://bevyengine.org/assets/icon.png",

crates/bevy_animation/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
22
#![forbid(unsafe_code)]
3-
#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
3+
#![deny(
4+
clippy::allow_attributes,
5+
clippy::allow_attributes_without_reason,
6+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
7+
)]
48
#![doc(
59
html_logo_url = "https://bevyengine.org/assets/icon.png",
610
html_favicon_url = "https://bevyengine.org/assets/icon.png"

crates/bevy_app/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
)]
88
#![cfg_attr(any(docsrs, docsrs_dep), feature(doc_auto_cfg, rustdoc_internals))]
99
#![forbid(unsafe_code)]
10-
#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
10+
#![deny(
11+
clippy::allow_attributes,
12+
clippy::allow_attributes_without_reason,
13+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
14+
)]
1115
#![doc(
1216
html_logo_url = "https://bevyengine.org/assets/icon.png",
1317
html_favicon_url = "https://bevyengine.org/assets/icon.png"

crates/bevy_math/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#![forbid(unsafe_code)]
2-
#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
2+
#![deny(
3+
clippy::allow_attributes,
4+
clippy::allow_attributes_without_reason,
5+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
6+
)]
37
#![cfg_attr(
48
any(docsrs, docsrs_dep),
59
expect(

crates/bevy_tasks/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
html_logo_url = "https://bevyengine.org/assets/icon.png",
55
html_favicon_url = "https://bevyengine.org/assets/icon.png"
66
)]
7-
#![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
7+
#![deny(
8+
clippy::allow_attributes,
9+
clippy::allow_attributes_without_reason,
10+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
11+
)]
812
#![no_std]
913

1014
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)