summaryrefslogtreecommitdiff
path: root/ecs/src/event.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-10-15 15:34:21 +0200
committerHampusM <hampus@hampusmat.com>2025-10-15 15:34:21 +0200
commitb3bc691aedb46519e36db8e9eba0e37ac3cefb4a (patch)
tree362875d247f10c888b9de8bc7bdaebd7d86a4e64 /ecs/src/event.rs
parent6ed1d5a9b0723049a15dc7896e34e5cd650f62c7 (diff)
refactor(ecs): make fn arg to insert_at_part_pt_by_key return ref
Diffstat (limited to 'ecs/src/event.rs')
-rw-r--r--ecs/src/event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/event.rs b/ecs/src/event.rs
index dffd327..15455b6 100644
--- a/ecs/src/event.rs
+++ b/ecs/src/event.rs
@@ -70,7 +70,7 @@ impl NewEvents
self.events.insert_at_part_pt_by_key(
(event_id, Matches { match_ids: Vec::from([match_id]) }),
- |(other_event_id, _)| *other_event_id,
+ |(other_event_id, _)| other_event_id,
);
}
@@ -100,6 +100,6 @@ impl Matches
}
self.match_ids
- .insert_at_part_pt_by_key(match_id, |other_match_id| *other_match_id);
+ .insert_at_part_pt_by_key(match_id, |other_match_id| other_match_id);
}
}