From 49c6adb0db70ffc30eaac33b66eacf7574b34e26 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 10 Feb 2021 23:06:48 +0100 Subject: Fixed most clippy warnings --- src/scene/mod.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/scene/mod.rs (limited to 'src/scene/mod.rs') diff --git a/src/scene/mod.rs b/src/scene/mod.rs deleted file mode 100644 index cd07236..0000000 --- a/src/scene/mod.rs +++ /dev/null @@ -1,25 +0,0 @@ -//! Defines the scene type which contains all the objects in the scene. -//! -//! Also handles finding intersections between rays and shapes -pub mod shapes; - -mod scene; -pub use scene::*; - -use std::rc::Rc; -use crate::core::Hittable; -use crate::material::Material; - -pub struct Object { - pub shape: Box, - pub mat: Rc, -} - -impl Object { - pub fn new(mat: Rc, shape: Box) -> Self { - Object { - mat, - shape, - } - } -} -- cgit v1.2.3