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/component | |
parent | 06750934c33a8b1458d60fe8d877bbf29ffda955 (diff) |
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/component')
-rw-r--r-- | ecs/src/component/storage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/component/storage.rs b/ecs/src/component/storage.rs index 141fea7..5c32e1e 100644 --- a/ecs/src/component/storage.rs +++ b/ecs/src/component/storage.rs @@ -393,9 +393,9 @@ impl Archetype EntityIter { iter: self.entities.iter() } } - pub fn get_index_for_component(&self, component_id: &Uid) -> Option<usize> + pub fn get_index_for_component(&self, component_id: Uid) -> Option<usize> { - self.component_ids.get(component_id).copied() + self.component_ids.get(&component_id).copied() } fn push_entity( |