Skip to content

Commit 627ba71

Browse files
committed
f MSRV
1 parent 67b4751 commit 627ba71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/util/test_utils.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,10 @@ impl Drop for TestChannelMessageHandler {
281281
fn drop(&mut self) {
282282
let l = self.expected_recv_msgs.lock().unwrap();
283283
#[cfg(feature = "std")]
284-
if !std::thread::panicking() {
285-
assert!(l.is_none() || l.as_ref().unwrap().is_empty());
284+
{
285+
if !std::thread::panicking() {
286+
assert!(l.is_none() || l.as_ref().unwrap().is_empty());
287+
}
286288
}
287289
}
288290
}

0 commit comments

Comments
 (0)