From c4e8c71d1f94a49d4fd1dd173a6f346009094715 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Tue, 25 Feb 2020 00:09:19 +0200 Subject: [PATCH] sysbus: Make BoxedMemory a transparent struct Former-commit-id: fc07876e9f73928eb2aaa6fcd4cba081a35745b9 --- src/core/sysbus.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/sysbus.rs b/src/core/sysbus.rs index 828fbe8..749f7fe 100644 --- a/src/core/sysbus.rs +++ b/src/core/sysbus.rs @@ -75,6 +75,7 @@ impl fmt::Display for MemoryAccess { } #[derive(Serialize, Deserialize, Clone, Debug)] +#[repr(transparent)] pub struct BoxedMemory { pub mem: Box<[u8]>, }