aboutsummaryrefslogtreecommitdiff
path: root/src/world/container/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/world/container/list.rs')
-rw-r--r--src/world/container/list.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world/container/list.rs b/src/world/container/list.rs
index c8e3fdd..22b6d88 100644
--- a/src/world/container/list.rs
+++ b/src/world/container/list.rs
@@ -1,9 +1,9 @@
-use crate::world::{Hittable, Intersection};
+use crate::world::{Object, Hittable, Intersection};
use crate::core::{Bound3f, Ray};
pub struct HittableList {
- elems: Vec<Box<dyn Hittable>>,
+ elems: Vec<Object>,
}
impl HittableList {
@@ -11,7 +11,7 @@ impl HittableList {
Self::default()
}
- pub fn add(&mut self, h: Box<dyn Hittable>) {
+ pub fn add(&mut self, h: Object) {
self.elems.push(h);
}
}