ClosureSearcher.modules HashMap<String, ...>
This commit is contained in:
@@ -165,7 +165,7 @@ fn add_closure_searcher_works() {
|
||||
let lua = Lua::new();
|
||||
|
||||
let mut modules: HashMap<
|
||||
&'static str,
|
||||
String,
|
||||
Box<
|
||||
dyn for<'ctx> Fn(Context<'ctx>, Table<'ctx>, &str) -> rlua::Result<Function<'ctx>>
|
||||
+ Send,
|
||||
@@ -189,7 +189,7 @@ fn add_closure_searcher_works() {
|
||||
.into_function()?)
|
||||
});
|
||||
|
||||
modules.insert("instrument", instrument_loader);
|
||||
modules.insert("instrument".to_string(), instrument_loader);
|
||||
|
||||
let sound = lua
|
||||
.context::<_, Result<String>>(|lua_ctx| {
|
||||
|
Reference in New Issue
Block a user