From 2dd76fd86e76bb897b7326c5a9972e76396f2fe7 Mon Sep 17 00:00:00 2001 From: Owen Brooks Date: Fri, 17 Jun 2022 17:38:03 +1000 Subject: [PATCH] Change quaternion debug format back to list form --- src/geometry/quaternion.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() } }