]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build warnings
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 1 Jun 2022 21:50:40 +0000 (14:50 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 2 Jun 2022 20:15:05 +0000 (13:15 -0700)
lightning-rapid-gossip-sync/src/lib.rs
lightning/src/routing/network_graph.rs

index e2e7807e398b48b327b63f6b5fec49a5724464df..d07a19fda43333a170086d7144d8488ea6163382 100644 (file)
@@ -271,6 +271,7 @@ pub mod bench {
                                        println!("{}", error_string);
                                        return;
                                }
+                               #[cfg(require_route_graph_test)]
                                panic!("{}", error_string);
                        }
                        assert!(sync_result.is_ok())
index 18b846cbf8895ce1e10f7ff5ba6411b1a1e91011..76af50bd785dd45eb5f131a9276eaeb2cd1cfc81 100644 (file)
@@ -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());