@@ -876,7 +876,7 @@ impl Lua {
876
876
/// not count in the stack).
877
877
///
878
878
/// [`Debug`]: crate::hook::Debug
879
- pub fn inspect_stack ( & self , level : usize ) -> Option < Debug > {
879
+ pub fn inspect_stack ( & self , level : usize ) -> Option < Debug < ' _ > > {
880
880
let lua = self . lock ( ) ;
881
881
unsafe {
882
882
let mut ar: ffi:: lua_Debug = mem:: zeroed ( ) ;
@@ -1955,15 +1955,15 @@ impl Lua {
1955
1955
/// Panics if the data object of type `T` is currently mutably borrowed. Multiple immutable
1956
1956
/// reads can be taken out at the same time.
1957
1957
#[ 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 > > {
1959
1959
let guard = self . lock_arc ( ) ;
1960
1960
let extra = unsafe { & * guard. extra . get ( ) } ;
1961
1961
extra. app_data . borrow ( Some ( guard) )
1962
1962
}
1963
1963
1964
1964
/// Tries to get a reference to an application data object stored by [`Lua::set_app_data`] of
1965
1965
/// 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 > {
1967
1967
let guard = self . lock_arc ( ) ;
1968
1968
let extra = unsafe { & * guard. extra . get ( ) } ;
1969
1969
extra. app_data . try_borrow ( Some ( guard) )
@@ -1976,15 +1976,15 @@ impl Lua {
1976
1976
///
1977
1977
/// Panics if the data object of type `T` is currently borrowed.
1978
1978
#[ 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 > > {
1980
1980
let guard = self . lock_arc ( ) ;
1981
1981
let extra = unsafe { & * guard. extra . get ( ) } ;
1982
1982
extra. app_data . borrow_mut ( Some ( guard) )
1983
1983
}
1984
1984
1985
1985
/// Tries to get a mutable reference to an application data object stored by
1986
1986
/// [`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 > {
1988
1988
let guard = self . lock_arc ( ) ;
1989
1989
let extra = unsafe { & * guard. extra . get ( ) } ;
1990
1990
extra. app_data . try_borrow_mut ( Some ( guard) )
@@ -2058,7 +2058,7 @@ impl Lua {
2058
2058
}
2059
2059
2060
2060
#[ inline( always) ]
2061
- pub ( crate ) fn lock ( & self ) -> ReentrantMutexGuard < RawLua > {
2061
+ pub ( crate ) fn lock ( & self ) -> ReentrantMutexGuard < ' _ , RawLua > {
2062
2062
let rawlua = self . raw . lock ( ) ;
2063
2063
#[ cfg( feature = "luau" ) ]
2064
2064
if unsafe { ( * rawlua. extra . get ( ) ) . running_gc } {
0 commit comments