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/material/lambertian.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/material') 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(), -- cgit v1.2.3