@@ -3581,7 +3581,7 @@ fn no_extra_retries_on_back_to_back_fail() {
35813581 expect_and_process_pending_htlcs ( & nodes[ 1 ] , false ) ;
35823582 expect_htlc_handling_failed_destinations ! (
35833583 nodes[ 1 ] . node. get_and_clear_pending_events( ) ,
3584- & [ next_hop_failure. clone ( ) ]
3584+ core :: slice :: from_ref ( & next_hop_failure)
35853585 ) ;
35863586 check_added_monitors ( & nodes[ 1 ] , 1 ) ;
35873587
@@ -3755,7 +3755,7 @@ fn test_simple_partial_retry() {
37553755 HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_2. 2 } ;
37563756 expect_htlc_handling_failed_destinations ! (
37573757 nodes[ 1 ] . node. get_and_clear_pending_events( ) ,
3758- & [ next_hop_failure. clone ( ) ]
3758+ core :: slice :: from_ref ( & next_hop_failure)
37593759 ) ;
37603760 check_added_monitors ( & nodes[ 1 ] , 2 ) ;
37613761
@@ -4247,7 +4247,10 @@ fn do_claim_from_closed_chan(fail_payment: bool) {
42474247 // We fail the HTLC on the A->B->D path first as it expires 4 blocks earlier. We go ahead
42484248 // and expire both immediately, though, by connecting another 4 blocks.
42494249 let reason = HTLCHandlingFailureType :: Receive { payment_hash : hash } ;
4250- expect_and_process_pending_htlcs_and_htlc_handling_failed ( & nodes[ 3 ] , & [ reason. clone ( ) ] ) ;
4250+ expect_and_process_pending_htlcs_and_htlc_handling_failed (
4251+ & nodes[ 3 ] ,
4252+ core:: slice:: from_ref ( & reason) ,
4253+ ) ;
42514254 connect_blocks ( & nodes[ 3 ] , 4 ) ;
42524255 expect_and_process_pending_htlcs_and_htlc_handling_failed ( & nodes[ 3 ] , & [ reason] ) ;
42534256
0 commit comments