From bbecf67545c2bd6822b0680673aa850c5ddef9f3 Mon Sep 17 00:00:00 2001 From: Sakarias Johansson Date: Tue, 10 Jan 2023 17:54:39 +0100 Subject: =?UTF-8?q?=F0=9F=94=A8=20Refactors=20&=20Use=20rayon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - All data shared between threads are now Arcs since the data is immutable. - Remove tokio - Rustified main --- racer-tracer/src/geometry.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'racer-tracer/src/geometry.rs') diff --git a/racer-tracer/src/geometry.rs b/racer-tracer/src/geometry.rs index aa1c18c..8d86353 100644 --- a/racer-tracer/src/geometry.rs +++ b/racer-tracer/src/geometry.rs @@ -47,8 +47,4 @@ impl Default for HitRecord { pub trait Hittable { //pub trait Hittable { fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option; - - // Manual ugly clone since forcing on Clone would make it a super trait. - // Clone requires Sized and super traits cannot be Sized. - fn clone_box(&self) -> Box; } -- cgit v1.2.3