Skip to content

Commit 137c9c4

Browse files
committed
clippy fixes
1 parent a366bb5 commit 137c9c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9303,7 +9303,7 @@ impl APIProvider for LuaBevyAPIProvider {
93039303
let ctx = ctx
93049304
.get_mut()
93059305
.expect("Unable to acquire lock on Lua context");
9306-
Ok(tealr::mlu::set_global_env(BevyAPIGlobals, &ctx)?)
9306+
Ok(tealr::mlu::set_global_env(BevyAPIGlobals, ctx)?)
93079307
}
93089308
fn get_doc_fragment(&self) -> Option<Self::DocTarget> {
93099309
Some(LuaDocFragment::new(|tw| {

src/api/lua/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl ValueIndex<Value<'_>> for ScriptRef {
3232
))
3333
}
3434
_ => {
35-
return Err(mlua::Error::RuntimeError(format!(
35+
Err(mlua::Error::RuntimeError(format!(
3636
"Cannot index a rust object with {:?}",
3737
index
3838
)))

0 commit comments

Comments
 (0)