Skip to content

Commit 9c2a993

Browse files
committed
Lint: Fix future clippy::let_and_return.
Probably from <rust-lang/rust-clippy#14180>.
1 parent d2fd725 commit 9c2a993

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

all-is-cubes-render/src/raytracer/renderer.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ mod trace_image {
474474

475475
// x.max(1) is zero-sized-viewport protection; the chunk size will be wrong, but there
476476
// will be zero chunks anyway.
477-
let total_info = output
477+
output
478478
.par_chunks_mut(viewport_size.width.max(1))
479479
.enumerate()
480480
.map(move |(ych, raster_row)| {
@@ -495,9 +495,7 @@ mod trace_image {
495495
})
496496
})
497497
.flatten()
498-
.sum();
499-
500-
total_info
498+
.sum() // sum of info
501499
}
502500

503501
/// Compute a full image, writing it into `output`.

0 commit comments

Comments
 (0)