mmio: Replace repr packed with transparent
Compare changes
- Tim Crawford authored
Use the layout and ABI of the underlying type instead of unnecessarily packing the struct. Ref: https://doc.rust-lang.org/nomicon/other-reprs.html Signed-off-by:
Tim Crawford <tcrawford@system76.com>
+ 3
− 5
@@ -6,7 +6,7 @@ use core::ptr;
@@ -27,12 +27,10 @@ impl<T> Io for Mmio<T> where T: Copy + PartialEq + BitAnd<Output = T> + BitOr<Ou