Merge pull request #2703 from wpaulino/retryable-commitment-broadcast
[rust-lightning] / lightning / src / ln / payment_tests.rs
index 1b7041c9fa23ef42443dbe5fa34c989894c113a6..6af0e63c98bf421bade346f89f1fff303f48e764 100644 (file)
@@ -3354,6 +3354,7 @@ fn test_threaded_payment_retries() {
                // We really want std::thread::scope, but its not stable until 1.63. Until then, we get unsafe.
                let node_ref = NodePtr::from_node(&nodes[0]);
                move || {
+                       let _ = &node_ref;
                        let node_a = unsafe { &*node_ref.0 };
                        while Instant::now() < end_time {
                                node_a.node.get_and_clear_pending_events(); // wipe the PendingHTLCsForwardable