@@ -876,7 +876,7 @@ impl Lua {
876876 /// not count in the stack).
877877 ///
878878 /// [`Debug`]: crate::hook::Debug
879- pub fn inspect_stack ( & self , level : usize ) -> Option < Debug > {
879+ pub fn inspect_stack ( & self , level : usize ) -> Option < Debug < ' _ > > {
880880 let lua = self . lock ( ) ;
881881 unsafe {
882882 let mut ar: ffi:: lua_Debug = mem:: zeroed ( ) ;
@@ -1955,15 +1955,15 @@ impl Lua {
19551955 /// Panics if the data object of type `T` is currently mutably borrowed. Multiple immutable
19561956 /// reads can be taken out at the same time.
19571957 #[ track_caller]
1958- pub fn app_data_ref < T : ' static > ( & self ) -> Option < AppDataRef < T > > {
1958+ pub fn app_data_ref < T : ' static > ( & self ) -> Option < AppDataRef < ' _ , T > > {
19591959 let guard = self . lock_arc ( ) ;
19601960 let extra = unsafe { & * guard. extra . get ( ) } ;
19611961 extra. app_data . borrow ( Some ( guard) )
19621962 }
19631963
19641964 /// Tries to get a reference to an application data object stored by [`Lua::set_app_data`] of
19651965 /// type `T`.
1966- pub fn try_app_data_ref < T : ' static > ( & self ) -> StdResult < Option < AppDataRef < T > > , BorrowError > {
1966+ pub fn try_app_data_ref < T : ' static > ( & self ) -> StdResult < Option < AppDataRef < ' _ , T > > , BorrowError > {
19671967 let guard = self . lock_arc ( ) ;
19681968 let extra = unsafe { & * guard. extra . get ( ) } ;
19691969 extra. app_data . try_borrow ( Some ( guard) )
@@ -1976,15 +1976,15 @@ impl Lua {
19761976 ///
19771977 /// Panics if the data object of type `T` is currently borrowed.
19781978 #[ track_caller]
1979- pub fn app_data_mut < T : ' static > ( & self ) -> Option < AppDataRefMut < T > > {
1979+ pub fn app_data_mut < T : ' static > ( & self ) -> Option < AppDataRefMut < ' _ , T > > {
19801980 let guard = self . lock_arc ( ) ;
19811981 let extra = unsafe { & * guard. extra . get ( ) } ;
19821982 extra. app_data . borrow_mut ( Some ( guard) )
19831983 }
19841984
19851985 /// Tries to get a mutable reference to an application data object stored by
19861986 /// [`Lua::set_app_data`] of type `T`.
1987- pub fn try_app_data_mut < T : ' static > ( & self ) -> StdResult < Option < AppDataRefMut < T > > , BorrowMutError > {
1987+ pub fn try_app_data_mut < T : ' static > ( & self ) -> StdResult < Option < AppDataRefMut < ' _ , T > > , BorrowMutError > {
19881988 let guard = self . lock_arc ( ) ;
19891989 let extra = unsafe { & * guard. extra . get ( ) } ;
19901990 extra. app_data . try_borrow_mut ( Some ( guard) )
@@ -2058,7 +2058,7 @@ impl Lua {
20582058 }
20592059
20602060 #[ inline( always) ]
2061- pub ( crate ) fn lock ( & self ) -> ReentrantMutexGuard < RawLua > {
2061+ pub ( crate ) fn lock ( & self ) -> ReentrantMutexGuard < ' _ , RawLua > {
20622062 let rawlua = self . raw . lock ( ) ;
20632063 #[ cfg( feature = "luau" ) ]
20642064 if unsafe { ( * rawlua. extra . get ( ) ) . running_gc } {
0 commit comments