mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
Run fmt
This commit is contained in:
parent
308d9dde3f
commit
271e68d88b
@ -130,10 +130,7 @@ impl Memory {
|
|||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
pub fn view<T: ValueType>(&self) -> MemoryView<T> {
|
pub fn view<T: ValueType>(&self) -> MemoryView<T> {
|
||||||
let vm::LocalMemory {
|
let vm::LocalMemory { base, .. } = unsafe { *self.vm_local_memory() };
|
||||||
base,
|
|
||||||
..
|
|
||||||
} = unsafe { *self.vm_local_memory() };
|
|
||||||
|
|
||||||
let length = self.size().bytes().0 / mem::size_of::<T>();
|
let length = self.size().bytes().0 / mem::size_of::<T>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user