Remove stray 'for<'a>' of unused 'a lifetime

This commit is contained in:
kyren 2017-08-01 18:35:09 -04:00
parent 64ac8b4679
commit f6cefca916
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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();
} }
*/ */