This commit is contained in:
Stephen Chung
2022-09-06 17:41:47 +08:00
7 changed files with 71 additions and 78 deletions

View File

@@ -239,7 +239,7 @@ impl FuncInfo {
/// The first module name is skipped. Hashing starts from the _second_ module in the chain.
#[inline]
pub fn calc_native_fn_hash<'a>(
modules: impl IntoIterator<Item = &'a str>,
modules: impl IntoIterator<Item = &'a str, IntoIter = impl ExactSizeIterator<Item = &'a str>>,
fn_name: &str,
params: &[TypeId],
) -> u64 {
@@ -1263,7 +1263,7 @@ impl Module {
access,
None,
arg_types,
CallableFunction::from_method(Box::new(f)),
CallableFunction::Method(Shared::new(f)),
)
}