We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a366bb5 commit 137c9c4Copy full SHA for 137c9c4
src/api/generated.rs
@@ -9303,7 +9303,7 @@ impl APIProvider for LuaBevyAPIProvider {
9303
let ctx = ctx
9304
.get_mut()
9305
.expect("Unable to acquire lock on Lua context");
9306
- Ok(tealr::mlu::set_global_env(BevyAPIGlobals, &ctx)?)
+ Ok(tealr::mlu::set_global_env(BevyAPIGlobals, ctx)?)
9307
}
9308
fn get_doc_fragment(&self) -> Option<Self::DocTarget> {
9309
Some(LuaDocFragment::new(|tw| {
src/api/lua/mod.rs
@@ -32,7 +32,7 @@ impl ValueIndex<Value<'_>> for ScriptRef {
32
))
33
34
_ => {
35
- return Err(mlua::Error::RuntimeError(format!(
+ Err(mlua::Error::RuntimeError(format!(
36
"Cannot index a rust object with {:?}",
37
index
38
)))
0 commit comments