pref: use ExactSizeIterator

This commit is contained in:
quake
2022-09-06 14:16:15 +09:00
parent ab23094d65
commit 563f18a04b
2 changed files with 15 additions and 19 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 {