Derive ArrayStorage Debug formatting
This commit is contained in:
parent
831142d618
commit
f77f556481
|
@ -1,4 +1,4 @@
|
|||
use std::fmt::{self, Debug, Formatter};
|
||||
use std::fmt::Debug;
|
||||
// use std::hash::{Hash, Hasher};
|
||||
use std::ops::Mul;
|
||||
|
||||
|
@ -26,7 +26,7 @@ use std::mem;
|
|||
*/
|
||||
/// A array-based statically sized matrix data storage.
|
||||
#[repr(transparent)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "rkyv-serialize", derive(bytecheck::CheckBytes))]
|
||||
#[cfg_attr(
|
||||
feature = "rkyv-serialize-no-std",
|
||||
|
@ -62,13 +62,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: Debug, const R: usize, const C: usize> Debug for ArrayStorage<T, R, C> {
|
||||
#[inline]
|
||||
fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(fmt)
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl<T, const R: usize, const C: usize> RawStorage<T, Const<R>, Const<C>>
|
||||
for ArrayStorage<T, R, C>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue