render: derive Default for BlackHoleMaterial

Clippy warned that the manual Default implementation for BlackHoleMaterial
could be derived (clippy::derivable_impls). We now derive Default directly
on the struct and remove the manual implementation block.
This commit is contained in:
xfy 2026-07-14 15:09:38 +08:00
parent 699a8c974e
commit 17fbbf98e1

View File

@ -89,7 +89,7 @@ pub struct SphereData {
pub const MAX_PLANETS: usize = 32;
#[derive(Asset, TypePath, AsBindGroup, Clone)]
#[derive(Asset, TypePath, AsBindGroup, Clone, Default)]
pub struct BlackHoleMaterial {
#[uniform(0)]
pub uniforms: BlackHoleUniforms,
@ -130,12 +130,4 @@ impl Material2d for UpscaleMaterial {
}
}
impl Default for BlackHoleMaterial {
fn default() -> Self {
Self {
uniforms: BlackHoleUniforms::default(),
skybox: None,
planets: Handle::default(),
}
}
}