File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ mod ext_impl {
4141 fn held_by_thread ( & self ) -> LockHeldState { LockHeldState :: Unsupported }
4242 type ExclLock = MutexGuard < ' a , T > ;
4343 #[ inline]
44- fn unsafe_well_ordered_double_lock_self ( & ' a self ) -> MutexGuard < T > { self . lock ( ) . unwrap ( ) }
44+ fn unsafe_well_ordered_double_lock_self ( & ' a self ) -> MutexGuard < ' a , T > { self . lock ( ) . unwrap ( ) }
4545 }
4646 impl < ' a , T : ' a > LockTestExt < ' a > for RwLock < T > {
4747 #[ inline]
4848 fn held_by_thread ( & self ) -> LockHeldState { LockHeldState :: Unsupported }
4949 type ExclLock = RwLockWriteGuard < ' a , T > ;
5050 #[ inline]
51- fn unsafe_well_ordered_double_lock_self ( & ' a self ) -> RwLockWriteGuard < T > { self . write ( ) . unwrap ( ) }
51+ fn unsafe_well_ordered_double_lock_self ( & ' a self ) -> RwLockWriteGuard < ' a , T > { self . write ( ) . unwrap ( ) }
5252 }
5353}
5454
You can’t perform that action at this time.
0 commit comments