From 4a5ec04a29cba07c5960792528bd66b0f99ee3ee Mon Sep 17 00:00:00 2001 From: Botahamec Date: Fri, 7 Feb 2025 17:48:26 -0500 Subject: Fix lifetimes for poison guards --- src/collection/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/collection/utils.rs') diff --git a/src/collection/utils.rs b/src/collection/utils.rs index 7f29037..d6d50f4 100644 --- a/src/collection/utils.rs +++ b/src/collection/utils.rs @@ -109,7 +109,7 @@ pub unsafe fn attempt_to_recover_reads_from_panic(locked: &[&dyn RawLock]) { handle_unwind( || { // safety: the caller assumes these are already locked - locked.iter().for_each(|lock| lock.raw_unlock()); + locked.iter().for_each(|lock| lock.raw_unlock_read()); }, // if we get another panic in here, we'll just have to poison what remains || locked.iter().for_each(|l| l.poison()), -- cgit v1.2.3