This commit is contained in:
Lachlan Sneff 2019-02-05 11:56:36 -08:00
parent 308d9dde3f
commit 271e68d88b

View File

@ -130,10 +130,7 @@ impl Memory {
/// # }
/// ```
pub fn view<T: ValueType>(&self) -> MemoryView<T> {
let vm::LocalMemory {
base,
..
} = unsafe { *self.vm_local_memory() };
let vm::LocalMemory { base, .. } = unsafe { *self.vm_local_memory() };
let length = self.size().bytes().0 / mem::size_of::<T>();