Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Feb 19, 2024
1 parent cd3be30 commit 198b8cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(missing_docs)]
#![allow(clippy::type_complexity)]
#![doc = include_str!("../readme.md")]

pub mod prelude {
Expand Down
8 changes: 4 additions & 4 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub(crate) fn customize_scene_materials(
mut materials: ResMut<Assets<ExtendedMaterial<StandardMaterial, WindWakerShader>>>,
mut cmds: Commands,
) {
for (entity, instance, config) in unloaded_instances.iter() {
for (entity, instance, shader) in unloaded_instances.iter() {
if let Some(instance) = instance {
if scene_manager.instance_is_ready(**instance) {
cmds.entity(entity).remove::<WindWakerShader>();
Expand All @@ -29,7 +29,7 @@ pub(crate) fn customize_scene_materials(
};
let toon_material = materials.add(ExtendedMaterial {
base: material.clone(),
extension: WindWakerShader::from(config.clone()),
extension: shader.clone(),
});
cmds.entity(entity)
.insert(toon_material)
Expand All @@ -48,13 +48,13 @@ pub(crate) fn customize_standard_materials(
pbr_materials: Res<Assets<StandardMaterial>>,
mut cmds: Commands,
) {
for (entity, material_handle, config) in with_material.iter() {
for (entity, material_handle, shader) in with_material.iter() {
let Some(material) = pbr_materials.get(material_handle) else {
continue;
};
let toon_material = materials.add(ExtendedMaterial {
base: material.clone(),
extension: WindWakerShader::from(config.clone()),
extension: shader.clone(),
});
cmds.entity(entity)
.insert(toon_material)
Expand Down

0 comments on commit 198b8cb

Please sign in to comment.