Skip to content

Commit f61de11

Browse files
authored
bevy_audio: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17119)
# Objective - #17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_audio` 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_audio` were run, and no errors were encountered.
1 parent b30ee2d commit f61de11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_audio/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#![forbid(unsafe_code)]
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+
)]
27
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
38
#![doc(
49
html_logo_url = "https://bevyengine.org/assets/icon.png",

0 commit comments

Comments
 (0)