mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
feat(api) Explicitly specify the iterator lifetime.
This commit is contained in:
@@ -129,7 +129,9 @@ impl Exports {
|
||||
self.map.contains_key(&name.into())
|
||||
}
|
||||
|
||||
pub fn iter<'a>(&'a self) -> ExportsIterator<impl Iterator<Item = (&'a String, &'a Extern)>> {
|
||||
pub fn iter<'a>(
|
||||
&'a self,
|
||||
) -> ExportsIterator<'a, impl Iterator<Item = (&'a String, &'a Extern)>> {
|
||||
ExportsIterator {
|
||||
iter: self.map.iter(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user