return usize instead of u8 for byte width
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-09-06 10:14:23 +02:00
parent c72c5ad4aa
commit 94489da003
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -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>;
}