mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-11 07:08:21 +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())
|
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 {
|
ExportsIterator {
|
||||||
iter: self.map.iter(),
|
iter: self.map.iter(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user