diff --git a/src/camera.rs b/src/camera.rs index 81a89ae..53b0883 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -46,9 +46,7 @@ impl + From> Iterator for ImageSampler { type Item = Ray; fn next(&mut self) -> Option { - if (self.current_row >= self.image_height_pixels - && self.current_column >= self.image_width_pixels) - { + if self.current_row >= self.image_height_pixels { return None; }