clippy
This commit is contained in:
parent
d00b98edb9
commit
469e9aca15
2 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ fn call_lua_on_update_from_rust(
|
|||
.unwrap()
|
||||
.0;
|
||||
scripting_runtime.with_engine(|ruby| {
|
||||
let val: i32 = TryConvert::try_convert(val.get_inner_with(&ruby)).unwrap();
|
||||
let val: i32 = TryConvert::try_convert(val.get_inner_with(ruby)).unwrap();
|
||||
println!("script returned: {}", val);
|
||||
});
|
||||
exit.write(AppExit::Success);
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ impl Runtime for RubyRuntime {
|
|||
|
||||
self.execute_in_thread(Box::new(move |ruby: &Ruby| {
|
||||
ruby.define_global_function(&name, function!(callback, -1));
|
||||
RubyValue::nil(&ruby)
|
||||
RubyValue::nil(ruby)
|
||||
}));
|
||||
|
||||
Ok(())
|
||||
|
|
@ -456,7 +456,7 @@ impl Runtime for RubyRuntime {
|
|||
var.ivar_set("_current", BevyEntity(entity)).unwrap();
|
||||
|
||||
let args: Vec<_> = args
|
||||
.parse(&ruby)
|
||||
.parse(ruby)
|
||||
.into_iter()
|
||||
.map(|a| ruby.get_inner(a.0))
|
||||
.collect();
|
||||
|
|
|
|||
Loading…
Reference in a new issue