Remove unnecessary borrow

Clippy emits:

 warning: the borrowed expression implements the required traits

As suggested, remove the unnecessary explicit borrow.
This commit is contained in:
Tobin C. Harding 2022-11-04 11:49:14 +11:00
parent 3966709336
commit 1050fe9cae
1 changed files with 2 additions and 3 deletions

View File

@ -281,8 +281,7 @@ mod tests {
let signature =
super::MessageSignature::from_base64(signature_base64).expect("message signature");
let pubkey =
PublicKey::from_slice(&::base64::decode(&pubkey_base64).expect("base64 string"))
let pubkey = PublicKey::from_slice(&base64::decode(pubkey_base64).expect("base64 string"))
.expect("pubkey slice");
let p2pkh = Address::p2pkh(&pubkey, Network::Bitcoin);