diff --git a/initfs/src/types.rs b/initfs/src/types.rs index bf09476cb5..68cf46fe66 100644 --- a/initfs/src/types.rs +++ b/initfs/src/types.rs @@ -11,14 +11,10 @@ macro_rules! primitive( impl $wrapper { #[inline] - pub const fn get(&self) -> $primitive { + pub const fn get(self) -> $primitive { <$primitive>::from_le_bytes(self.0) } #[inline] - pub fn set(&mut self, primitive: $primitive) { - *self = Self::new(primitive); - } - #[inline] pub const fn new(primitive: $primitive) -> Self { Self(<$primitive>::to_le_bytes(primitive)) }