Fixed an unused variable warning

This commit is contained in:
Matthew Gordon 2019-11-12 16:47:29 -05:00
parent 95631d3708
commit 2ec0c133a8
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ mod tests {
let ray = target.ray_for_pixel(100, 200);
let film_plane = Plane::new(Vector3::new(0.0, 0.0, 1.0), target.film_distance);
let point_on_film_plane = match film_plane.intersect(&ray) {
Some(IntersectionInfo { location, distance }) => location,
Some(IntersectionInfo {
location,
distance: _,
}) => location,
None => panic!(),
};
let expected_x: f64 =