diff --git a/lib/src/transaction.rs b/lib/src/transaction.rs index 425e5e2b4..98600d273 100644 --- a/lib/src/transaction.rs +++ b/lib/src/transaction.rs @@ -156,7 +156,7 @@ impl UnpublishedOperation { impl Drop for UnpublishedOperation { fn drop(&mut self) { if !std::thread::panicking() { - debug_assert!( + assert!( self.closed, "UnpublishedOperation was dropped without being closed." ); diff --git a/lib/src/working_copy.rs b/lib/src/working_copy.rs index f9d20f4cf..90d19f499 100644 --- a/lib/src/working_copy.rs +++ b/lib/src/working_copy.rs @@ -912,7 +912,7 @@ impl LockedWorkingCopy<'_> { impl Drop for LockedWorkingCopy<'_> { fn drop(&mut self) { if !std::thread::panicking() { - debug_assert!( + assert!( self.closed, "Working copy lock was dropped without being closed." );