summaryrefslogtreecommitdiff
path: root/tests/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thread.rs')
-rw-r--r--tests/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/thread.rs b/tests/thread.rs
index 9a84a2c..0473e88 100644
--- a/tests/thread.rs
+++ b/tests/thread.rs
@@ -182,7 +182,7 @@ fn test_coroutine_panic() {
let thrd_main = lua.create_function(|_, ()| -> Result<()> {
panic!("test_panic");
})?;
- lua.globals().set("main", thrd_main.clone())?;
+ lua.globals().set("main", &thrd_main)?;
let thrd: Thread = lua.create_thread(thrd_main)?;
thrd.resume(())
}) {