Track claimed outbound HTLCs in ChannelMonitors
[rust-lightning] / lightning / src / sync / debug_sync.rs
index 5b6acbcadd5bf38686f8ec43dc761eae6a9e3ba1..dd106a9e897e0125b3daf4913d3f65f15c350762 100644 (file)
@@ -201,6 +201,11 @@ pub struct Mutex<T: Sized> {
        inner: StdMutex<T>,
        deps: Arc<LockMetadata>,
 }
+impl<T: Sized> Mutex<T> {
+       pub(crate) fn into_inner(self) -> LockResult<T> {
+               self.inner.into_inner().map_err(|_| ())
+       }
+}
 
 #[must_use = "if unused the Mutex will immediately unlock"]
 pub struct MutexGuard<'a, T: Sized + 'a> {