Drop Clone from ChannelMonitor.
[rust-lightning] / lightning / src / ln / functional_tests.rs
index b9e6b569019123ee131d871a65d4e965683199fe..50120356910bcdb6fe62e9679fdad75beaa2c956 100644 (file)
@@ -6577,7 +6577,7 @@ fn test_data_loss_protect() {
                }).unwrap().1
        };
        nodes[0].node = &node_state_0;
-       assert!(monitor.add_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor.clone()).is_ok());
+       assert!(monitor.add_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor).is_ok());
        nodes[0].chan_monitor = &monitor;
        nodes[0].chain_monitor = chain_monitor;