Fix formatting

This commit is contained in:
Owen Brooks 2022-06-17 18:25:50 +10:00
parent 6df81c2292
commit 76bc230a30
2 changed files with 3 additions and 6 deletions

View File

@ -9,9 +9,9 @@ use serde::ser::SerializeSeq;
#[cfg(feature = "serde-serialize-no-std")]
use serde::{Deserialize, Deserializer, Serialize, Serializer};
#[cfg(feature = "serde-serialize-no-std")]
use std::marker::PhantomData;
#[cfg(feature = "serde-serialize-no-std")]
use std::fmt::{self, Formatter};
#[cfg(feature = "serde-serialize-no-std")]
use std::marker::PhantomData;
use crate::base::allocator::Allocator;
use crate::base::default_allocator::DefaultAllocator;

View File

@ -36,10 +36,7 @@ pub struct Quaternion<T> {
impl<T: fmt::Debug> fmt::Debug for Quaternion<T> {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
formatter
.debug_list()
.entries(self.coords.iter())
.finish()
formatter.debug_list().entries(self.coords.iter()).finish()
}
}