@@ -92,7 +92,7 @@ fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
9292
9393 let mut hops = Vec :: < RouteHop > :: new ( ) ;
9494 let hop_count = get_slice ! ( 1 ) [ 0 ] as usize ;
95- for i in 0 ..hop_count {
95+ for _ in 0 ..hop_count {
9696 hops. push ( RouteHop {
9797 pubkey : get_pubkey ! ( ) ,
9898 node_features : NodeFeatures :: empty ( ) ,
@@ -108,7 +108,7 @@ fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
108108 true => {
109109 let mut trampoline_hops = Vec :: < TrampolineHop > :: new ( ) ;
110110 let trampoline_hop_count = get_slice ! ( 1 ) [ 0 ] as usize ;
111- for i in 0 ..trampoline_hop_count {
111+ for _ in 0 ..trampoline_hop_count {
112112 trampoline_hops. push ( TrampolineHop {
113113 pubkey : get_pubkey ! ( ) ,
114114 node_features : NodeFeatures :: empty ( ) ,
@@ -118,7 +118,7 @@ fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
118118 }
119119 let mut blinded_hops = Vec :: < BlindedHop > :: new ( ) ;
120120 let blinded_hop_count = get_slice ! ( 1 ) [ 0 ] as usize ;
121- for i in 0 ..blinded_hop_count {
121+ for _ in 0 ..blinded_hop_count {
122122 blinded_hops. push ( BlindedHop {
123123 blinded_node_id : get_pubkey ! ( ) ,
124124 encrypted_payload : get_slice ! ( get_u8!( ) ) . to_vec ( ) ,
@@ -147,12 +147,7 @@ fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
147147 let failure_len = u16:: from_be_bytes ( get_slice ! ( 2 ) . try_into ( ) . unwrap ( ) ) ;
148148 let encrypted_packet = OnionErrorPacket { data : get_slice ! ( failure_len as u64 ) . into ( ) } ;
149149
150- lightning:: ln:: onion_utils:: process_onion_failure (
151- & secp_ctx,
152- & logger,
153- & htlc_source,
154- encrypted_packet,
155- ) ;
150+ lightning:: ln:: process_onion_failure ( & secp_ctx, & logger, & htlc_source, encrypted_packet) ;
156151}
157152
158153/// Method that needs to be added manually, {name}_test
0 commit comments