Skip to content

Commit cef6c26

Browse files
committed
rustfmt: Prepare lightning-invoice/src/payment.rs
1 parent f39abf9 commit cef6c26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ mod tests {
201201
.unwrap();
202202

203203
let (hash, onion, params) = payment_parameters_from_invoice(&invoice).unwrap();
204-
nodes[0].node.send_payment(hash, onion, PaymentId(hash.0), params, Retry::Attempts(0)).unwrap();
204+
let id = PaymentId(hash.0);
205+
nodes[0].node.send_payment(hash, onion, id, params, Retry::Attempts(0)).unwrap();
205206
check_added_monitors(&nodes[0], 1);
206207
let send_event = SendEvent::from_node(&nodes[0]);
207208
nodes[1].node.handle_update_add_htlc(&nodes[0].node.get_our_node_id(), &send_event.msgs[0]);

0 commit comments

Comments
 (0)