Remove unnecessary annotations on Module::get_export (#3318)

I think these were historically needed but nowadays not necessary!
This commit is contained in:
Alex Crichton
2021-09-09 13:54:50 -05:00
committed by GitHub
parent bd19f43f84
commit e26b91e890

View File

@@ -894,7 +894,7 @@ impl Module {
/// # Ok(()) /// # Ok(())
/// # } /// # }
/// ``` /// ```
pub fn get_export<'module>(&'module self, name: &'module str) -> Option<ExternType> { pub fn get_export(&self, name: &str) -> Option<ExternType> {
let module = self.compiled_module().module(); let module = self.compiled_module().module();
let entity_index = module.exports.get(name)?; let entity_index = module.exports.get(name)?;
Some(ExternType::from_wasmtime( Some(ExternType::from_wasmtime(