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.
This commit is contained in:
2025-08-20 10:15:30 -05:00
parent 46f6784256
commit 83fa670d35

View File

@@ -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(