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/component/storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/component') 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 + pub fn get_index_for_component(&self, component_id: Uid) -> Option { - self.component_ids.get(component_id).copied() + self.component_ids.get(&component_id).copied() } fn push_entity( -- cgit v1.2.3-18-g5258