From 8c5ca95d9915020a025034d85e15c1a39c3ec08a Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 1 Jun 2022 14:50:40 -0700 Subject: [PATCH] Fix build warnings --- lightning-rapid-gossip-sync/src/lib.rs | 1 + lightning/src/routing/network_graph.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lightning-rapid-gossip-sync/src/lib.rs b/lightning-rapid-gossip-sync/src/lib.rs index e2e7807e3..d07a19fda 100644 --- a/lightning-rapid-gossip-sync/src/lib.rs +++ b/lightning-rapid-gossip-sync/src/lib.rs @@ -271,6 +271,7 @@ pub mod bench { println!("{}", error_string); return; } + #[cfg(require_route_graph_test)] panic!("{}", error_string); } assert!(sync_result.is_ok()) diff --git a/lightning/src/routing/network_graph.rs b/lightning/src/routing/network_graph.rs index 18b846cbf..76af50bd7 100644 --- a/lightning/src/routing/network_graph.rs +++ b/lightning/src/routing/network_graph.rs @@ -2385,7 +2385,7 @@ mod tests { #[test] fn network_graph_tlv_serialization() { - let mut network_graph = create_network_graph(); + let network_graph = create_network_graph(); network_graph.set_last_rapid_gossip_sync_timestamp(42); let mut w = test_utils::TestVecWriter(Vec::new()); -- 2.39.5