Fix formatting
This commit is contained in:
parent
6df81c2292
commit
76bc230a30
|
@ -9,9 +9,9 @@ use serde::ser::SerializeSeq;
|
||||||
#[cfg(feature = "serde-serialize-no-std")]
|
#[cfg(feature = "serde-serialize-no-std")]
|
||||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||||
#[cfg(feature = "serde-serialize-no-std")]
|
#[cfg(feature = "serde-serialize-no-std")]
|
||||||
use std::marker::PhantomData;
|
|
||||||
#[cfg(feature = "serde-serialize-no-std")]
|
|
||||||
use std::fmt::{self, Formatter};
|
use std::fmt::{self, Formatter};
|
||||||
|
#[cfg(feature = "serde-serialize-no-std")]
|
||||||
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
use crate::base::allocator::Allocator;
|
use crate::base::allocator::Allocator;
|
||||||
use crate::base::default_allocator::DefaultAllocator;
|
use crate::base::default_allocator::DefaultAllocator;
|
||||||
|
|
|
@ -36,10 +36,7 @@ pub struct Quaternion<T> {
|
||||||
|
|
||||||
impl<T: fmt::Debug> fmt::Debug for Quaternion<T> {
|
impl<T: fmt::Debug> fmt::Debug for Quaternion<T> {
|
||||||
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
|
||||||
formatter
|
formatter.debug_list().entries(self.coords.iter()).finish()
|
||||||
.debug_list()
|
|
||||||
.entries(self.coords.iter())
|
|
||||||
.finish()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue