diff --git a/lib/runtime-core/src/import.rs b/lib/runtime-core/src/import.rs index a40f0273d..e5cd06c4d 100644 --- a/lib/runtime-core/src/import.rs +++ b/lib/runtime-core/src/import.rs @@ -192,9 +192,16 @@ pub struct ImportObjectIterator { impl Iterator for ImportObjectIterator { type Item = (String, String, Export); + fn next(&mut self) -> Option { self.elements.pop_front() } + + fn size_hint(&self) -> (usize, Option) { + let len = self.elements.len(); + + (len, Some(len)) + } } impl IntoIterator for ImportObject {