Skip to content

Commit

Permalink
Look over reference to type id lookup container.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 committed Aug 9, 2023
1 parent 5ad96c2 commit d82e2f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archetypes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ where
}
}

for (&type_id, identifier) in self.type_id_lookup.iter() {
for (&type_id, identifier) in &self.type_id_lookup {
cloned_archetypes.type_id_lookup.insert(
type_id,
// SAFETY: Each identifier in `self.type_id_lookup` is guaranteed to be found in
Expand Down Expand Up @@ -515,7 +515,7 @@ where
//
// Note that no type id entries are removed here. New ones are just added, since the old
// archetypes were just cleared, not removed entirely.
for (&type_id, identifier) in source.type_id_lookup.iter() {
for (&type_id, identifier) in &source.type_id_lookup {
self.type_id_lookup.insert(
type_id,
// SAFETY: Each identifier in `source.type_id_lookup` is guaranteed to be found in
Expand Down

0 comments on commit d82e2f5

Please sign in to comment.