From 83fa670d3586d773fda1d9d7f148ce3529735a1b Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Wed, 20 Aug 2025 10:15:30 -0500 Subject: [PATCH] Remove these extra brackets I don't know why I put them there, and I'm not going to `git bisect` to figure it out. They're just going away. --- src/renderer.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/renderer.rs b/src/renderer.rs index b19e134..175fb8e 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -46,12 +46,10 @@ fn ray_color(r: Ray, surface: &Hittable, depth: u32, rng: &mut SmallRng) -> Vec3 // when the else path is taken. This is a problem for a function // that returns Vec3 and not (). - { - // when nothing is struck, return sky color - let unitdir = Vec3::as_unit(r.dir); - let t = 0.5 * (unitdir.y + 1.0); - Vec3::ones() * (1.0 - t) + SKY_COLOR * t - } + // when nothing is struck, return sky color + let unitdir = Vec3::as_unit(r.dir); + let t = 0.5 * (unitdir.y + 1.0); + Vec3::ones() * (1.0 - t) + SKY_COLOR * t } fn sample_pixel(