From e26b91e890b1d2ab42efa674c2d9f7035edf22ab Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 9 Sep 2021 13:54:50 -0500 Subject: [PATCH] Remove unnecessary annotations on `Module::get_export` (#3318) I think these were historically needed but nowadays not necessary! --- crates/wasmtime/src/module.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wasmtime/src/module.rs b/crates/wasmtime/src/module.rs index e8a0174697..677b094baa 100644 --- a/crates/wasmtime/src/module.rs +++ b/crates/wasmtime/src/module.rs @@ -894,7 +894,7 @@ impl Module { /// # Ok(()) /// # } /// ``` - pub fn get_export<'module>(&'module self, name: &'module str) -> Option { + pub fn get_export(&self, name: &str) -> Option { let module = self.compiled_module().module(); let entity_index = module.exports.get(name)?; Some(ExternType::from_wasmtime(