diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-02-13 01:18:18 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-02-13 01:18:18 +0100 |
| commit | 6cf5448611bdf5956127f1fe6840891c50a6f3ae (patch) | |
| tree | ce332c2230e3c0b277dcca2d2e348fdd04ef2e95 /crates | |
| parent | 3d1a621dc52727629a798249c27beba2466719ea (diff) | |
fix: broken dependency on latest nightly
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/tinywasm/src/store/memory.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<const T: usize>: 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] |
