Skip to content

Commit 8031d84

Browse files
authored
bevy_window: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17213)
# Objective - #17111 ## Solution Set the `clippy::allow_attributes` and `clippy::allow_attributes_without_reason` lints to `deny`, and bring `bevy_window` in line with the new restrictions. ## Testing `cargo clippy --tests` was run, and no errors were encountered.
1 parent 3aa89e1 commit 8031d84

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

crates/bevy_window/src/lib.rs

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

crates/bevy_window/src/raw_handle.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#![allow(unsafe_code)]
1+
#![expect(
2+
unsafe_code,
3+
reason = "This module acts as a wrapper around the `raw_window_handle` crate, which exposes many unsafe interfaces; thus, we have to use unsafe code here."
4+
)]
25

36
use alloc::sync::Arc;
47
use bevy_ecs::prelude::Component;

0 commit comments

Comments
 (0)