From 6cf5448611bdf5956127f1fe6840891c50a6f3ae Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Tue, 13 Feb 2024 01:18:18 +0100 Subject: fix: broken dependency on latest nightly Signed-off-by: Henry Gressmann --- crates/tinywasm/src/store/memory.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates') diff --git a/crates/tinywasm/src/store/memory.rs b/crates/tinywasm/src/store/memory.rs index 588d995..cbaed8d 100644 --- a/crates/tinywasm/src/store/memory.rs +++ b/crates/tinywasm/src/store/memory.rs @@ -177,14 +177,17 @@ impl MemoryInstance { /// UB for loading things things like packed structs pub(crate) unsafe trait MemLoadable: Sized + Copy { /// Load a value from memory + #[allow(unused)] fn from_le_bytes(bytes: [u8; T]) -> Self; /// Load a value from memory + #[allow(unused)] fn from_be_bytes(bytes: [u8; T]) -> Self; } macro_rules! impl_mem_loadable_for_primitive { ($($type:ty, $size:expr),*) => { $( + #[allow(unused)] #[allow(unsafe_code)] unsafe impl MemLoadable<$size> for $type { #[inline] -- cgit v1.3.1