Skip to content

Commit 396a4b0

Browse files
committed
Possibly this fixes rust stable?
1 parent 5b723d5 commit 396a4b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lua.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ pub trait FromLuaMulti<'a>: Sized {
124124
fn from_lua_multi(values: LuaMultiValue<'a>, lua: &'a Lua) -> LuaResult<Self>;
125125
}
126126

127-
type LuaCallback<'lua> =
128-
Box<'lua + FnMut(&'lua Lua, LuaMultiValue<'lua>) -> LuaResult<LuaMultiValue<'lua>>>;
127+
type LuaCallback<'lua> = Box<
128+
FnMut(&'lua Lua, LuaMultiValue<'lua>) -> LuaResult<LuaMultiValue<'lua>>
129+
+ 'lua,
130+
>;
129131

130132
struct LuaRef<'lua> {
131133
lua: &'lua Lua,

0 commit comments

Comments
 (0)