Skip to content

Commit cb01aa1

Browse files
add missing clippy attributes
1 parent 049da16 commit cb01aa1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_log/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ impl LogPlugin {
389389
(chrome_layer.boxed(), guard)
390390
}
391391

392+
#[expect(
393+
clippy::allow_attributes,
394+
reason = "We can't switch to `expect` for allow(unused_variables) as we use it if not on those platforms"
395+
)]
396+
#[allow(unused_variables, reason = "Not used on `wasm32`, `android` or `ios")]
392397
fn build_system_output_layer(custom_format_layer: Option<BoxedLayer>) -> BoxedLayer {
393398
let layer: BoxedLayer;
394399
#[cfg(target_arch = "wasm32")]

0 commit comments

Comments
 (0)