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.
This commit is contained in:
Tobin Harding 2022-01-24 12:45:48 +11:00
parent d6462bae7b
commit b021415a88
1 changed files with 8 additions and 7 deletions

View File

@ -901,13 +901,14 @@ mod tests {
assert_eq!(indexed.child(ChildNumber::from_hardened_idx(2).unwrap()), path); assert_eq!(indexed.child(ChildNumber::from_hardened_idx(2).unwrap()), path);
} }
fn test_path<C: secp256k1::Signing + secp256k1::Verification>(secp: &Secp256k1<C>, fn test_path<C: secp256k1::Signing + secp256k1::Verification>(
network: Network, secp: &Secp256k1<C>,
seed: &[u8], network: Network,
path: DerivationPath, seed: &[u8],
expected_sk: &str, path: DerivationPath,
expected_pk: &str) { expected_sk: &str,
expected_pk: &str)
{
let mut sk = ExtendedPrivKey::new_master(network, seed).unwrap(); let mut sk = ExtendedPrivKey::new_master(network, seed).unwrap();
let mut pk = ExtendedPubKey::from_priv(secp, &sk); let mut pk = ExtendedPubKey::from_priv(secp, &sk);