Derive ArrayStorage Debug formatting

This commit is contained in:
Owen Brooks 2022-06-15 13:44:20 +10:00
parent 831142d618
commit f77f556481
1 changed files with 2 additions and 9 deletions

View File

@ -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>
{