You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
- bevyengine#17111
## Solution
Set the `clippy::allow_attributes` and
`clippy::allow_attributes_without_reason` lints to `deny`, and bring
`bevy_asset` in line with the new restrictions.
No code changes have been made - except if a lint that was previously
`allow(...)`'d could be removed via small code changes. For example,
`unused_variables` can be handled by adding a `_` to the beginning of a
field's name.
## Testing
`cargo clippy` and `cargo test --package bevy_asset --features
multi_threaded` were run, and no errors were encountered.
Copy file name to clipboardExpand all lines: crates/bevy_asset/src/handle.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -551,8 +551,11 @@ mod tests {
551
551
}
552
552
553
553
/// Typed and Untyped `Handles` should be orderable amongst each other and themselves
554
-
#[allow(clippy::cmp_owned)]
555
554
#[test]
555
+
#[expect(
556
+
clippy::cmp_owned,
557
+
reason = "This lints on the assertion that a typed handle converted to an untyped handle maintains its ordering compared to an untyped handle. While the conversion would normally be useless, we need to ensure that converted handles maintain their ordering, making the conversion necessary here."
Copy file name to clipboardExpand all lines: crates/bevy_asset/src/lib.rs
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,11 @@
139
139
//! This trait mirrors [`AssetLoader`] in structure, and works in tandem with [`AssetWriter`](io::AssetWriter), which mirrors [`AssetReader`](io::AssetReader).
140
140
141
141
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
142
+
#![deny(
143
+
clippy::allow_attributes,
144
+
clippy::allow_attributes_without_reason,
145
+
reason = "See #17111; To be removed once all crates are in-line with these attributes"
0 commit comments