diff --git a/src/thread.rs b/src/thread.rs index 20692bd..68e1a68 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -258,7 +258,7 @@ impl<'lua> Thread<'lua> { A: ToLuaMulti<'lua>, R: FromLuaMulti<'lua>, { - let args = args.to_lua_multi(&self.0.lua); + let args = args.to_lua_multi(self.0.lua); AsyncThread { thread: self, args0: RefCell::new(Some(args)), diff --git a/src/types.rs b/src/types.rs index abff804..b66ea8f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -117,8 +117,8 @@ impl<'lua> PartialEq for LuaRef<'lua> { unsafe { let _sg = StackGuard::new(lua.state); assert_stack(lua.state, 2); - lua.push_ref(&self); - lua.push_ref(&other); + lua.push_ref(self); + lua.push_ref(other); ffi::lua_rawequal(lua.state, -1, -2) == 1 } } diff --git a/tests/module/tests/load.rs b/tests/module/tests/load.rs index 83a9cf8..15dc5ae 100644 --- a/tests/module/tests/load.rs +++ b/tests/module/tests/load.rs @@ -35,7 +35,7 @@ fn test_module_error() -> Result<()> { r#" local ok, err = pcall(require, "rust_module.error") assert(not ok) - assert(string:find(tostring(err), "custom module error")) + assert(string.find(tostring(err), "custom module error")) "#, ) .exec()