Skip to content

Commit

Permalink
chore: add clippy allow conversion in the sample() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Walther committed Oct 11, 2023
1 parent b811483 commit 0488870
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clovers-cli/src/draw_cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ fn sample(
let ray: Ray = scene.camera.get_ray(u, v, rng);
let new_color = colorize(&ray, scene, 0, max_depth, rng);
if new_color.is_finite() {
// helper when experimentally switching between XYZ and RGB in colorize.rs
#[allow(clippy::useless_conversion)]
return Some(new_color.into());
}
None
Expand Down

0 comments on commit 0488870

Please sign in to comment.