From 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 11 Nov 2024 00:24:27 +0100 Subject: refactor(ecs): fix clippy lints --- ecs/src/relationship.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/relationship.rs') diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs index 9f2a81e..259677b 100644 --- a/ecs/src/relationship.rs +++ b/ecs/src/relationship.rs @@ -169,7 +169,7 @@ where .get_entity(*target) .expect("Target entity is gone from archetype"); - let component_index = archetype.get_index_for_component(&ComponentT::id())?; + let component_index = archetype.get_index_for_component(ComponentT::id())?; let component = ComponentRefMut::new( entity @@ -373,7 +373,7 @@ where .get_entity(*target) .expect("Target entity is gone from archetype"); - let component_index = archetype.get_index_for_component(&ComponentT::id())?; + let component_index = archetype.get_index_for_component(ComponentT::id())?; let component = ComponentRef::new( entity -- cgit v1.2.3-18-g5258