From ed9871a6a1528fa94fa933ac6ddd3552d0972f40 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 28 May 2020 11:29:58 +0200 Subject: [PATCH] feat(api) Explicitly specify the iterator lifetime. --- lib/api/src/exports.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api/src/exports.rs b/lib/api/src/exports.rs index 672d5361b..c7e9add5c 100644 --- a/lib/api/src/exports.rs +++ b/lib/api/src/exports.rs @@ -129,7 +129,9 @@ impl Exports { self.map.contains_key(&name.into()) } - pub fn iter<'a>(&'a self) -> ExportsIterator> { + pub fn iter<'a>( + &'a self, + ) -> ExportsIterator<'a, impl Iterator> { ExportsIterator { iter: self.map.iter(), }