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")?;