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:
parent
e2d47a29e2
commit
3ecb5e41b3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue