feat(api) Explicitly specify the iterator lifetime.

This commit is contained in:
Ivan Enderlin
2020-05-28 11:29:58 +02:00
parent 6d6274ba45
commit ed9871a6a1

View File

@@ -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(),
}