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.
This commit is contained in:
parent
a5ef427cb8
commit
6801f196c3
@ -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,
|
||||
|
||||
@ -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<Assets<Image>>,
|
||||
params: Res<crate::params::BlackHoleParams>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user