Skip to content

Commit 9f1b8b4

Browse files
authored
bevy_time: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17210)
# Objective - #17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_time` 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`, `cargo clippy --package bevy_time` and `cargo test --package bevy_time` were run, and no errors were encountered.
1 parent e0d3270 commit 9f1b8b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/bevy_time/src/lib.rs

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

crates/bevy_time/src/timer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ pub enum TimerMode {
447447
}
448448

449449
#[cfg(test)]
450-
#[allow(clippy::float_cmp)]
451450
mod tests {
452451
use super::*;
453452

0 commit comments

Comments
 (0)