From f02c370ad7c4c67141d64d5fac300b9f67bd9075 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 27 Jan 2024 19:26:32 +0100 Subject: [PATCH] Fix doc test --- lib/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/traits.rs b/lib/traits.rs index 5d45659..7625af6 100644 --- a/lib/traits.rs +++ b/lib/traits.rs @@ -85,7 +85,7 @@ pub trait LuaSpawnExt<'lua> { })? )?; - let rt = Runtime::new(&lua)?; + let rt = Runtime::new(&lua); rt.spawn_thread(lua.load("spawnBackgroundTask()"), ()); block_on(rt.run());