aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/spectrum.rs1
-rw-r--r--src/material/lambertian.rs2
-rw-r--r--src/scene/scene.rs2
3 files changed, 2 insertions, 3 deletions
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;