diff --git a/fj-math/src/vector.rs b/fj-math/src/vector.rs index d1c296c32..88adcddc2 100644 --- a/fj-math/src/vector.rs +++ b/fj-math/src/vector.rs @@ -160,14 +160,14 @@ impl ops::DerefMut for Vector<3> { } impl From<[Scalar; D]> for Vector { - fn from(array: [Scalar; D]) -> Self { - Self { components: array } + fn from(components: [Scalar; D]) -> Self { + Self { components } } } impl From<[f64; D]> for Vector { - fn from(array: [f64; D]) -> Self { - Self::from_components_f64(array) + fn from(components: [f64; D]) -> Self { + Self::from_components_f64(components) } }