Remove stray 'for<'a>' of unused 'a lifetime
This commit is contained in:
parent
64ac8b4679
commit
f6cefca916
|
@ -1063,7 +1063,7 @@ impl<'lua, T: UserData> UserDataMethods<'lua, T> {
|
||||||
where
|
where
|
||||||
A: FromLuaMulti<'lua>,
|
A: FromLuaMulti<'lua>,
|
||||||
R: ToLuaMulti<'lua>,
|
R: ToLuaMulti<'lua>,
|
||||||
F: 'static + for<'a> FnMut(&'lua Lua, A) -> Result<R>,
|
F: 'static + FnMut(&'lua Lua, A) -> Result<R>,
|
||||||
{
|
{
|
||||||
Box::new(move |lua, args| {
|
Box::new(move |lua, args| {
|
||||||
function(lua, A::from_lua_multi(args, lua)?)?.to_lua_multi(
|
function(lua, A::from_lua_multi(args, lua)?)?.to_lua_multi(
|
||||||
|
|
|
@ -910,7 +910,7 @@ fn should_not_compile() {
|
||||||
|
|
||||||
// Should not allow self borrow of lua, it can change addresses
|
// Should not allow self borrow of lua, it can change addresses
|
||||||
globals.set("boom", lua.create_function(|_, _| {
|
globals.set("boom", lua.create_function(|_, _| {
|
||||||
lua.pack(lua.eval::<i32>("1 + 1", None)?)
|
lua.eval::<i32>("1 + 1", None)
|
||||||
})).unwrap();
|
})).unwrap();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue