Skip to content

Commit 9ff0a19

Browse files
committed
f just check if we're in std
1 parent f6c2423 commit 9ff0a19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/util/test_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ impl TestChannelMessageHandler {
280280
impl Drop for TestChannelMessageHandler {
281281
fn drop(&mut self) {
282282
let l = self.expected_recv_msgs.lock().unwrap();
283+
#[cfg(feature = "std")]
283284
if !std::thread::panicking() {
284285
assert!(l.is_none() || l.as_ref().unwrap().is_empty());
285286
}

0 commit comments

Comments
 (0)