diff options
author | Julian T <julian@jtle.dk> | 2021-07-31 18:27:56 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-07-31 18:27:56 +0200 |
commit | ae460c3f34838e3baf0ffafe4ccbcf1fbfe03095 (patch) | |
tree | a2ff1092f5deb2d28f5196d69ba511487f0a4953 /src/world/scene.rs | |
parent | cee9bcf4a2c8ffbfe6487f7886b2247eaba1c92c (diff) |
Remove dynamic boxes from object and list implementation
Diffstat (limited to 'src/world/scene.rs')
-rw-r--r-- | src/world/scene.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world/scene.rs b/src/world/scene.rs index 6d15fc1..87bec1f 100644 --- a/src/world/scene.rs +++ b/src/world/scene.rs @@ -14,7 +14,7 @@ impl Scene { } pub fn add_object(&mut self, obj: Object) { - self.content.add(Box::new(obj)); + self.content.add(obj); } pub fn add_objects(&mut self, objs: Vec<Object>) { |