Refactor from_secret_key definition

The `from_secret_key` method definition currently uses non-standard
indentation.

Improve uniformity by using 'standard' indentation.
This commit is contained in:
Tobin Harding 2022-02-09 09:02:53 +00:00
parent e2d47a29e2
commit 3ecb5e41b3
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 3 deletions

View File

@ -338,9 +338,7 @@ impl PublicKey {
/// # } /// # }
/// ``` /// ```
#[inline] #[inline]
pub fn from_secret_key<C: Signing>(secp: &Secp256k1<C>, pub fn from_secret_key<C: Signing>(secp: &Secp256k1<C>,sk: &SecretKey) -> PublicKey {
sk: &SecretKey)
-> PublicKey {
unsafe { unsafe {
let mut pk = ffi::PublicKey::new(); let mut pk = ffi::PublicKey::new();
// We can assume the return value because it's not possible to construct // We can assume the return value because it's not possible to construct