From f77f5564818661542fd2963e1ad922e46e8f6073 Mon Sep 17 00:00:00 2001 From: Owen Brooks Date: Wed, 15 Jun 2022 13:44:20 +1000 Subject: [PATCH] Derive ArrayStorage Debug formatting --- src/base/array_storage.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/base/array_storage.rs b/src/base/array_storage.rs index 3bc71e1a..ae7a2e3b 100644 --- a/src/base/array_storage.rs +++ b/src/base/array_storage.rs @@ -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 Debug for ArrayStorage { - #[inline] - fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result { - self.0.fmt(fmt) - } -} - unsafe impl RawStorage, Const> for ArrayStorage {