summaryrefslogtreecommitdiff
path: root/src/lua/runnable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/runnable.rs')
-rw-r--r--src/lua/runnable.rs4
1 files changed, 3 insertions, 1 deletions
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<A, R>
where
Self: Send,
+ R: ?Sized
{
fn run<'lua>(&self, arg: A, lua: &'lua Lua) -> Result<R>
where
@@ -16,6 +17,7 @@ impl<A, R, T> Runnable<A, R> for T
where
T: Fn(A) -> R,
Self: Send,
+ R: ?Sized
{
fn run<'lua>(&self, arg: A, _: &'lua Lua) -> Result<R>
where
@@ -29,6 +31,7 @@ where
impl<A, R> Runnable<A, R> for OwnedFunction
where
Self: Send,
+ R: ?Sized
{
fn run<'lua>(&self, arg: A, lua: &'lua Lua) -> Result<R>
where
@@ -39,4 +42,3 @@ where
func.call::<A, R>(arg)
}
}
-