ft: ran linter
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user