From: Jeffrey Czyz Date: Wed, 1 Jun 2022 21:50:40 +0000 (-0700) Subject: Fix build warnings X-Git-Tag: v0.0.107~3^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=8c5ca95d9915020a025034d85e15c1a39c3ec08a;p=rust-lightning Fix build warnings --- 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());