File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ impl GlobalEvaluationContext {
1212 Self ( Arc :: new ( RwLock :: new ( evaluation_context) ) )
1313 }
1414
15- pub async fn get ( & self ) -> RwLockReadGuard < EvaluationContext > {
15+ pub async fn get ( & self ) -> RwLockReadGuard < ' _ , EvaluationContext > {
1616 self . 0 . read ( ) . await
1717 }
1818
19- pub async fn get_mut ( & self ) -> RwLockWriteGuard < EvaluationContext > {
19+ pub async fn get_mut ( & self ) -> RwLockWriteGuard < ' _ , EvaluationContext > {
2020 self . 0 . write ( ) . await
2121 }
2222}
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ use crate::HookWrapper;
88pub struct GlobalHooks ( Arc < RwLock < Vec < HookWrapper > > > ) ;
99
1010impl GlobalHooks {
11- pub async fn get ( & self ) -> RwLockReadGuard < Vec < HookWrapper > > {
11+ pub async fn get ( & self ) -> RwLockReadGuard < ' _ , Vec < HookWrapper > > {
1212 self . 0 . read ( ) . await
1313 }
1414
15- pub async fn get_mut ( & self ) -> RwLockWriteGuard < Vec < HookWrapper > > {
15+ pub async fn get_mut ( & self ) -> RwLockWriteGuard < ' _ , Vec < HookWrapper > > {
1616 self . 0 . write ( ) . await
1717 }
1818}
You can’t perform that action at this time.
0 commit comments