From 0e8d116892280bbca4f5324816f2720cf690df8f 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 984f42fea71..4d3692380f1 100644 --- a/lightning/src/ln/functional_test_utils.rs +++ b/lightning/src/ln/functional_test_utils.rs @@ -2198,6 +2198,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();