diff --git a/lib/types/src/types.rs b/lib/types/src/types.rs index cf1b6ba02..47732fbde 100644 --- a/lib/types/src/types.rs +++ b/lib/types/src/types.rs @@ -141,7 +141,11 @@ fn is_table_element_type_compatible(exported_type: Type, imported_type: Type) -> } } -fn is_table_compatible(exported: &TableType, imported: &TableType, imported_runtime_size: Option) -> bool { +fn is_table_compatible( + exported: &TableType, + imported: &TableType, + imported_runtime_size: Option, +) -> bool { let TableType { ty: exported_ty, minimum: exported_minimum, diff --git a/lib/vm/src/memory.rs b/lib/vm/src/memory.rs index 99474aa3b..c7e86c474 100644 --- a/lib/vm/src/memory.rs +++ b/lib/vm/src/memory.rs @@ -365,7 +365,7 @@ impl VMMemory { pub fn get_runtime_size(&self) -> u32 { unsafe { self.0.vmmemory().as_ref() }.current_length as u32 } - + /// Create a new linear memory instance with specified minimum and maximum number of wasm pages. /// /// This creates a `Memory` with metadata owned by a VM, pointed to by