Skip to content

Commit aa2a771

Browse files
committed
rustfmt: Run on lightning/src/offers/test_utils.rs
1 parent c0617da commit aa2a771

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lightning/src/offers/test_utils.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99

1010
//! Utilities for testing BOLT 12 Offers interfaces
1111
12-
use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey};
1312
use bitcoin::secp256k1::schnorr::Signature;
13+
use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey};
1414

15-
use core::time::Duration;
16-
use crate::blinded_path::BlindedHop;
1715
use crate::blinded_path::payment::{BlindedPayInfo, BlindedPaymentPath};
16+
use crate::blinded_path::BlindedHop;
17+
use crate::offers::merkle::TaggedHash;
1818
use crate::sign::EntropySource;
19-
use crate::types::payment::PaymentHash;
2019
use crate::types::features::BlindedHopFeatures;
21-
use crate::offers::merkle::TaggedHash;
20+
use crate::types::payment::PaymentHash;
21+
use core::time::Duration;
2222

2323
#[allow(unused_imports)]
2424
use crate::prelude::*;
@@ -69,7 +69,8 @@ pub(super) fn privkey(byte: u8) -> SecretKey {
6969
pub(crate) fn payment_paths() -> Vec<BlindedPaymentPath> {
7070
vec![
7171
BlindedPaymentPath::from_raw(
72-
pubkey(40), pubkey(41),
72+
pubkey(40),
73+
pubkey(41),
7374
vec![
7475
BlindedHop { blinded_node_id: pubkey(43), encrypted_payload: vec![0; 43] },
7576
BlindedHop { blinded_node_id: pubkey(44), encrypted_payload: vec![0; 44] },
@@ -84,7 +85,8 @@ pub(crate) fn payment_paths() -> Vec<BlindedPaymentPath> {
8485
},
8586
),
8687
BlindedPaymentPath::from_raw(
87-
pubkey(40), pubkey(41),
88+
pubkey(40),
89+
pubkey(41),
8890
vec![
8991
BlindedHop { blinded_node_id: pubkey(45), encrypted_payload: vec![0; 45] },
9092
BlindedHop { blinded_node_id: pubkey(46), encrypted_payload: vec![0; 46] },

0 commit comments

Comments
 (0)