From 3ecb5e41b3375e38d00f864b07291e0e494c689e Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Wed, 9 Feb 2022 09:02:53 +0000 Subject: [PATCH] Refactor from_secret_key definition The `from_secret_key` method definition currently uses non-standard indentation. Improve uniformity by using 'standard' indentation. --- src/key.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/key.rs b/src/key.rs index 562f02e..45d631c 100644 --- a/src/key.rs +++ b/src/key.rs @@ -338,9 +338,7 @@ impl PublicKey { /// # } /// ``` #[inline] - pub fn from_secret_key(secp: &Secp256k1, - sk: &SecretKey) - -> PublicKey { + pub fn from_secret_key(secp: &Secp256k1,sk: &SecretKey) -> PublicKey { unsafe { let mut pk = ffi::PublicKey::new(); // We can assume the return value because it's not possible to construct