From ae460c3f34838e3baf0ffafe4ccbcf1fbfe03095 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 31 Jul 2021 18:27:56 +0200 Subject: Remove dynamic boxes from object and list implementation --- src/world/scene.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world/scene.rs') 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) { -- cgit v1.2.3