We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23751c commit 3feaabcCopy full SHA for 3feaabc
1 file changed
src/scene.rs
@@ -56,7 +56,7 @@ pub fn replicate_into(scene: &mut DynamicScene, world: &World) {
56
let mut entities: EntityHashMap<_> = scene
57
.entities
58
.drain(..)
59
- .map(|dyn_entity| (dyn_entity.entity, dyn_entity.components))
+ .map(|e| (e.entity, e.components))
60
.collect();
61
62
let registry = world.resource::<AppTypeRegistry>();
@@ -118,8 +118,9 @@ pub fn replicate_into(scene: &mut DynamicScene, world: &World) {
118
}
119
120
121
- let dyn_entities_iter = entities
122
- .drain()
123
- .map(|(entity, components)| DynamicEntity { entity, components });
124
- scene.entities.extend(dyn_entities_iter);
+ scene.entities.extend(
+ entities
+ .drain()
+ .map(|(entity, components)| DynamicEntity { entity, components }),
125
+ );
126
0 commit comments