SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Render: the radiance bound check uses a range, as clippy 1.97 asks (#6650)
NOWN-DEV111dbc6855a7
diff --git a/crates/render/src/raytrace/image.rs b/crates/render/src/raytrace/image.rsindex 5facf5a3d6..4a24a4a00f 100644--- a/crates/render/src/raytrace/image.rs+++ b/crates/render/src/raytrace/image.rs@@ -749,7 +749,7 @@ impl ImageTask {for _ in 0..repeats {self.pixel_radiance += radiance;if !self.pixel_radiance.is_finite()- || [self.pixel_radiance.x, self.pixel_radiance.y, self.pixel_radiance.z].into_iter().any(|v| v < 0.0 || v > 1e12)+ || [self.pixel_radiance.x, self.pixel_radiance.y, self.pixel_radiance.z].into_iter().any(|v| !(0.0..=1e12).contains(&v)){return Err(invalid("reflection radiance exceeds finite transport bound"));}