From b13286e2bf017cdef1c7b1872be084f3516155ff Mon Sep 17 00:00:00 2001 From: yjhmelody Date: Tue, 28 Nov 2023 14:34:54 +0800 Subject: [PATCH] improve docs --- crates/wasmi/src/module/instantiate/mod.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/wasmi/src/module/instantiate/mod.rs b/crates/wasmi/src/module/instantiate/mod.rs index b87deac441..759fed4564 100644 --- a/crates/wasmi/src/module/instantiate/mod.rs +++ b/crates/wasmi/src/module/instantiate/mod.rs @@ -78,17 +78,6 @@ impl Module { /// Extract the Wasm imports from the module and zips them with the given external values. /// /// This also stores imported references into the [`Instance`] under construction. - /// - /// # Errors - /// - /// - If too few or too many external values are given for the required module imports. - /// - If the zipped import and given external have mismatching types, e.g. on index `i` - /// the module requires a function import but on index `i` the externals provide a global - /// variable external value. - /// - If the externally provided [`Table`], [`Memory`], [`Func`] or [`Global`] has a type - /// mismatch with the expected module import type. - /// - /// [`Func`]: [`crate::Func`] fn extract_imports(builder: &mut InstanceEntityBuilder, externals: I) where I: IntoIterator,