From 94489da00323dc6caf24e05e240c80fc10b5d8cc Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 6 Sep 2022 10:14:23 +0200 Subject: [PATCH] return usize instead of u8 for byte width --- src/ecss.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecss.rs b/src/ecss.rs index 56befd4..8bbbb91 100644 --- a/src/ecss.rs +++ b/src/ecss.rs @@ -138,8 +138,8 @@ pub(crate) use sp_header_impls; pub trait EcssEnumeration { fn pfc(&self) -> u8; - fn byte_width(&self) -> u8 { - self.pfc() / 8 + fn byte_width(&self) -> usize { + (self.pfc() / 8) as usize } fn to_bytes(&self, buf: &mut [u8]) -> Result<(), ByteConversionError>; }