run cargo fmt

This commit is contained in:
Andrew Poelstra 2023-07-20 17:13:15 +00:00
parent b3ac00b8b3
commit ebcce38b4f
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 3 deletions

View File

@ -265,9 +265,7 @@ impl PublicKey {
} }
impl From<secp256k1::PublicKey> for PublicKey { impl From<secp256k1::PublicKey> for PublicKey {
fn from(pk: secp256k1::PublicKey) -> PublicKey { fn from(pk: secp256k1::PublicKey) -> PublicKey { PublicKey::new(pk) }
PublicKey::new(pk)
}
} }
impl From<PublicKey> for XOnlyPublicKey { impl From<PublicKey> for XOnlyPublicKey {