cargo fmt

This commit is contained in:
Felix Schütt
2022-10-14 14:12:52 +02:00
parent 607050641c
commit ad1f4fea05
2 changed files with 6 additions and 2 deletions

View File

@@ -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<u32>) -> bool {
fn is_table_compatible(
exported: &TableType,
imported: &TableType,
imported_runtime_size: Option<u32>,
) -> bool {
let TableType {
ty: exported_ty,
minimum: exported_minimum,

View File

@@ -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