From cb3ab851ec1c3a18740e62e22f3ea62e7929cc2e Mon Sep 17 00:00:00 2001 From: jabu Date: Sun, 14 May 2023 08:51:07 -0500 Subject: [PATCH] remove unnecessary mut --- src/materials.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/materials.rs b/src/materials.rs index 54fd00a..0f83bd9 100644 --- a/src/materials.rs +++ b/src/materials.rs @@ -58,12 +58,12 @@ impl Plugin for SpineMaterialPlugin #[allow(clippy::type_complexity, clippy::too_many_arguments)] fn update_materials<'w, 's, T: SpineMaterial>( mut commands: Commands, - mut spine_query: Query<(Entity, &Children), With>, mut materials: ResMut>, + spine_query: Query<(Entity, &Children), With>, mesh_query: Query<(Entity, &SpineMesh, Option<&Handle>)>, params: StaticSystemParam>, ) { - for (spine_entity, spine_children) in spine_query.iter_mut() { + for (spine_entity, spine_children) in spine_query.iter() { for spine_child in spine_children.iter() { if let Ok((mesh_entity, spine_mesh, material_handle)) = mesh_query.get(*spine_child) { let SpineMeshState::Renderable { data } = spine_mesh.state.clone() else {