From b021415a88fddbac1433dbd22932468ece36fa8b Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 24 Jan 2022 12:45:48 +1100 Subject: [PATCH] Use block stlye function call This function uses neither "Block" nor "Visual" style (as defined by `rustfmt`). This is unusual, code that is regular is less jarring to read. We tent to use "Block" style for functions so elect to do that here. --- src/util/bip32.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/util/bip32.rs b/src/util/bip32.rs index 769122d2..112dd83d 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -901,13 +901,14 @@ mod tests { assert_eq!(indexed.child(ChildNumber::from_hardened_idx(2).unwrap()), path); } - fn test_path(secp: &Secp256k1, - network: Network, - seed: &[u8], - path: DerivationPath, - expected_sk: &str, - expected_pk: &str) { - + fn test_path( + secp: &Secp256k1, + network: Network, + seed: &[u8], + path: DerivationPath, + expected_sk: &str, + expected_pk: &str) + { let mut sk = ExtendedPrivKey::new_master(network, seed).unwrap(); let mut pk = ExtendedPubKey::from_priv(secp, &sk);