We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::let_and_return
1 parent d2fd725 commit 9c2a993Copy full SHA for 9c2a993
all-is-cubes-render/src/raytracer/renderer.rs
@@ -474,7 +474,7 @@ mod trace_image {
474
475
// x.max(1) is zero-sized-viewport protection; the chunk size will be wrong, but there
476
// will be zero chunks anyway.
477
- let total_info = output
+ output
478
.par_chunks_mut(viewport_size.width.max(1))
479
.enumerate()
480
.map(move |(ych, raster_row)| {
@@ -495,9 +495,7 @@ mod trace_image {
495
})
496
497
.flatten()
498
- .sum();
499
-
500
- total_info
+ .sum() // sum of info
501
}
502
503
/// Compute a full image, writing it into `output`.
0 commit comments