diff --git a/src/geometry/quaternion.rs b/src/geometry/quaternion.rs index 5d02988a..03a1312a 100755 --- a/src/geometry/quaternion.rs +++ b/src/geometry/quaternion.rs @@ -37,11 +37,8 @@ pub struct Quaternion { impl fmt::Debug for Quaternion { fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { formatter - .debug_struct("Quaternion") - .field("x", &self.coords[0]) - .field("y", &self.coords[1]) - .field("z", &self.coords[2]) - .field("w", &self.coords[3]) + .debug_list() + .entries(self.coords.iter()) .finish() } }