@@ -3581,7 +3581,7 @@ fn no_extra_retries_on_back_to_back_fail() {
3581
3581
expect_and_process_pending_htlcs ( & nodes[ 1 ] , false ) ;
3582
3582
expect_htlc_handling_failed_destinations ! (
3583
3583
nodes[ 1 ] . node. get_and_clear_pending_events( ) ,
3584
- & [ next_hop_failure. clone ( ) ]
3584
+ core :: slice :: from_ref ( & next_hop_failure)
3585
3585
) ;
3586
3586
check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3587
3587
@@ -3755,7 +3755,7 @@ fn test_simple_partial_retry() {
3755
3755
HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_2. 2 } ;
3756
3756
expect_htlc_handling_failed_destinations ! (
3757
3757
nodes[ 1 ] . node. get_and_clear_pending_events( ) ,
3758
- & [ next_hop_failure. clone ( ) ]
3758
+ core :: slice :: from_ref ( & next_hop_failure)
3759
3759
) ;
3760
3760
check_added_monitors ( & nodes[ 1 ] , 2 ) ;
3761
3761
@@ -4247,7 +4247,10 @@ fn do_claim_from_closed_chan(fail_payment: bool) {
4247
4247
// We fail the HTLC on the A->B->D path first as it expires 4 blocks earlier. We go ahead
4248
4248
// and expire both immediately, though, by connecting another 4 blocks.
4249
4249
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
+ ) ;
4251
4254
connect_blocks ( & nodes[ 3 ] , 4 ) ;
4252
4255
expect_and_process_pending_htlcs_and_htlc_handling_failed ( & nodes[ 3 ] , & [ reason] ) ;
4253
4256
0 commit comments