From b747ca8af52129876b577a4f20f7105a05c6b002 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 10 Aug 2024 15:41:31 +0200 Subject: add global fileloader registry --- src/lua/runnable.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lua/runnable.rs') diff --git a/src/lua/runnable.rs b/src/lua/runnable.rs index adda512..683d191 100644 --- a/src/lua/runnable.rs +++ b/src/lua/runnable.rs @@ -5,6 +5,7 @@ use super::ownedfunction::OwnedFunction; pub trait Runnable where Self: Send, + R: ?Sized { fn run<'lua>(&self, arg: A, lua: &'lua Lua) -> Result where @@ -16,6 +17,7 @@ impl Runnable for T where T: Fn(A) -> R, Self: Send, + R: ?Sized { fn run<'lua>(&self, arg: A, _: &'lua Lua) -> Result where @@ -29,6 +31,7 @@ where impl Runnable for OwnedFunction where Self: Send, + R: ?Sized { fn run<'lua>(&self, arg: A, lua: &'lua Lua) -> Result where @@ -39,4 +42,3 @@ where func.call::(arg) } } - -- cgit v1.2.3-70-g09d2