summaryrefslogtreecommitdiff
path: root/ecs/src/component/storage.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-11-11 00:24:27 +0100
committerHampusM <hampus@hampusmat.com>2024-11-11 00:24:27 +0100
commit7c5c87d316df31bfe732872df10eaa1a4b6f3a12 (patch)
treedd8a0f1f3131ba279569899a008c058216c5d1e9 /ecs/src/component/storage.rs
parent06750934c33a8b1458d60fe8d877bbf29ffda955 (diff)
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/component/storage.rs')
-rw-r--r--ecs/src/component/storage.rs4
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(