]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix clone warning on nightly.
authorArik Sosman <git@arik.io>
Mon, 26 Jun 2023 14:17:18 +0000 (10:17 -0400)
committerArik Sosman <git@arik.io>
Mon, 26 Jun 2023 14:17:18 +0000 (10:17 -0400)
lightning/src/ln/reload_tests.rs

index bf2fb1de1e30d4a9ff3bf1fa5498d8f37fbbf5f8..b53c617916a16deb8efc52b0197dacd61f5af780 100644 (file)
@@ -384,7 +384,7 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
        fee_estimator = test_utils::TestFeeEstimator { sat_per_kw: Mutex::new(253) };
        persister = test_utils::TestPersister::new();
        let keys_manager = &chanmon_cfgs[0].keys_manager;
-       new_chain_monitor = test_utils::TestChainMonitor::new(Some(nodes[0].chain_source), nodes[0].tx_broadcaster.clone(), &logger, &fee_estimator, &persister, keys_manager);
+       new_chain_monitor = test_utils::TestChainMonitor::new(Some(nodes[0].chain_source), nodes[0].tx_broadcaster, &logger, &fee_estimator, &persister, keys_manager);
        nodes[0].chain_monitor = &new_chain_monitor;