From 6801f196c3c595b950473f5f63603c82ea935a99 Mon Sep 17 00:00:00 2001 From: xfy Date: Wed, 15 Jul 2026 17:01:40 +0800 Subject: [PATCH] style: clear remaining clippy warnings - params.rs: collapse `if cfg!(wasm) { false } else { true }` for star_aa into `!cfg!(wasm)` (clippy::needless_bool). - render/plugin.rs: `resize_offscreen` is a Bevy system whose argument count is fixed by its SystemParam set; allow clippy::too_many_arguments alongside the existing type_complexity allow on the same function. --- src/params.rs | 2 +- src/render/plugin.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/params.rs b/src/params.rs index f2741b3..60f2f9a 100644 --- a/src/params.rs +++ b/src/params.rs @@ -145,7 +145,7 @@ impl Default for BlackHoleParams { skybox_intensity: 0.0, // procedural stars only by default planet_count: 0, spin: 0.0, - star_aa: if cfg!(target_arch = "wasm32") { false } else { true }, + star_aa: !cfg!(target_arch = "wasm32"), bloom_threshold: 1.0, bloom_strength: 0.8, exposure: 1.0, diff --git a/src/render/plugin.rs b/src/render/plugin.rs index 713e198..b441e4b 100644 --- a/src/render/plugin.rs +++ b/src/render/plugin.rs @@ -419,7 +419,7 @@ fn spawn_bloom_pipeline( /// Recreate the offscreen Image and rescale both quads on window resize, /// honoring the live `render_scale` param. -#[allow(clippy::type_complexity)] +#[allow(clippy::type_complexity, clippy::too_many_arguments)] fn resize_offscreen( mut images: ResMut>, params: Res,