diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
commit | 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 (patch) | |
tree | dd8a0f1f3131ba279569899a008c058216c5d1e9 /ecs/src/relationship.rs | |
parent | 06750934c33a8b1458d60fe8d877bbf29ffda955 (diff) |
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/relationship.rs')
-rw-r--r-- | ecs/src/relationship.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |