Drop OutPoint::new since the struct is all pub
[rust-lightning] / fuzz / src / chanmon_consistency.rs
index e9f56a3e4605426881b442e580ef04ef8c5f9b97..e0fa7d3ed1d73fd48fc5a014813b1db5cfdec91e 100644 (file)
@@ -267,7 +267,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
                                        let tx = Transaction { version: $chan_id, lock_time: 0, input: Vec::new(), output: vec![TxOut {
                                                value: *channel_value_satoshis, script_pubkey: output_script.clone(),
                                        }]};
-                                       funding_output = OutPoint::new(tx.txid(), 0);
+                                       funding_output = OutPoint { txid: tx.txid(), index: 0 };
                                        $source.funding_transaction_generated(&temporary_channel_id, funding_output);
                                        channel_txn.push(tx);
                                } else { panic!("Wrong event type"); }