From efdf979b580a24451b56b6c748d9adc90aaaae49 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 17 Mar 2022 14:56:30 +0100 Subject: [PATCH] Update parameter names --- fj-math/src/vector.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) } }