Skip to content

Commit 55879e0

Browse files
committed
f fix nostd build
1 parent ab51917 commit 55879e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/sync/nostd_sync.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ pub struct Mutex<T: ?Sized> {
99
inner: RefCell<T>,
1010
}
1111

12+
#[cfg(test)]
13+
unsafe impl<T: ?Sized> RefUnwindSafe for Mutex<T> {}
14+
1215
#[must_use = "if unused the Mutex will immediately unlock"]
1316
pub struct MutexGuard<'a, T: ?Sized + 'a> {
1417
lock: RefMut<'a, T>,

0 commit comments

Comments
 (0)