ft: ran linter

This commit is contained in:
2026-04-29 02:11:41 +02:00
parent e88422cb2f
commit 388fbcbb8a
12 changed files with 80 additions and 63 deletions

View File

@@ -17,11 +17,11 @@ pub struct Hit {
impl Hit {
pub fn new(t: f32, p: Vec3, n: Vec3, mat: Arc<dyn Material>, front_face: bool) -> Self {
Self {
t: t,
p: p,
t,
p,
n: if front_face { n } else { -n },
mat: mat,
front_face: front_face,
mat,
front_face,
}
}
@@ -57,6 +57,6 @@ impl Hit {
}
}
}
return closest;
closest
}
}