From 6df0417568ef6f315138d9c3fd707ac3241a6a30 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 8 Feb 2021 12:40:55 +0100 Subject: Fix render warnings --- src/core/spectrum.rs | 1 - src/material/lambertian.rs | 2 +- src/scene/scene.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/spectrum.rs b/src/core/spectrum.rs index c33d3af..bea056e 100644 --- a/src/core/spectrum.rs +++ b/src/core/spectrum.rs @@ -2,7 +2,6 @@ //! //! Currently only implements RGB colors use crate::Float; -use std::ops; // TODO implement SampledSpectrum instead for nicer images diff --git a/src/material/lambertian.rs b/src/material/lambertian.rs index 28d15d3..65a59cc 100644 --- a/src/material/lambertian.rs +++ b/src/material/lambertian.rs @@ -21,7 +21,7 @@ impl Lambertian { } impl Material for Lambertian { - fn scatter(&self, ray: &Ray, i: &Intersection, sampler: &mut dyn Sampler) -> Option<(Spectrum, Ray)> { + fn scatter(&self, _: &Ray, i: &Intersection, sampler: &mut dyn Sampler) -> Option<(Spectrum, Ray)> { let mut newray = Ray { origin: i.p, direction: i.n + sampler.get_unit_vector(), diff --git a/src/scene/scene.rs b/src/scene/scene.rs index 0ffbe97..8575217 100644 --- a/src/scene/scene.rs +++ b/src/scene/scene.rs @@ -1,4 +1,4 @@ -use crate::core::{Ray, Intersection, Hittable}; +use crate::core::{Ray, Intersection}; use crate::material::Material; use super::Object; -- cgit v1.2.3