From: Arik Sosman Date: Mon, 26 Jun 2023 14:17:18 +0000 (-0400) Subject: Fix clone warning on nightly. X-Git-Tag: v0.0.116-rc1~24^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=89aa7ace6a53786d310386af403d33010f8cd05c;p=rust-lightning Fix clone warning on nightly. --- diff --git a/lightning/src/ln/reload_tests.rs b/lightning/src/ln/reload_tests.rs index bf2fb1de1..b53c61791 100644 --- a/lightning/src/ln/reload_tests.rs +++ b/lightning/src/ln/reload_tests.rs @@ -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;