From 2794d5461554a35a7f357efc220aa8ac0ac2d0f9 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Tue, 9 Jan 2024 14:46:09 -0500 Subject: [PATCH] Fix unused warning in test macro. --- lightning/src/ln/functional_test_utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/ln/functional_test_utils.rs b/lightning/src/ln/functional_test_utils.rs index 67832a7f259..d5ef24f8dab 100644 --- a/lightning/src/ln/functional_test_utils.rs +++ b/lightning/src/ln/functional_test_utils.rs @@ -2232,6 +2232,7 @@ pub fn expect_payment_forwarded>( } } +#[cfg(test)] macro_rules! expect_payment_forwarded { ($node: expr, $prev_node: expr, $next_node: expr, $expected_fee: expr, $upstream_force_closed: expr, $downstream_force_closed: expr) => { let mut events = $node.node.get_and_clear_pending_events();