From a7c9fbdba8bbfc55270c3e33be7a5b9187022047 Mon Sep 17 00:00:00 2001 From: Andy Weidenbaum Date: Thu, 4 Feb 2021 15:30:06 +1100 Subject: [PATCH] rm superfluous lifetime annotation --- src/searcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/searcher.rs b/src/searcher.rs index bb2ad4a..673e99b 100644 --- a/src/searcher.rs +++ b/src/searcher.rs @@ -41,14 +41,14 @@ impl UserData for Searcher { } /// Extend `rlua::Context` to support `require`ing Lua modules by name. -pub trait AddSearcher<'a> { +pub trait AddSearcher { /// Add a `HashMap` of Lua modules indexed by module name to Lua’s /// `package.searchers` table in an `rlua::Context`, with lookup /// functionality provided by the `rlua_searcher::Searcher` struct. fn add_searcher(&self, modules: HashMap) -> Result<()>; } -impl<'a> AddSearcher<'a> for Context<'a> { +impl<'a> AddSearcher for Context<'a> { fn add_searcher(&self, modules: HashMap) -> Result<()> { let globals = self.globals(); let searchers: Table = globals.get::<_, Table>("package")?.get("searchers")?;