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:
parent
3966709336
commit
1050fe9cae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue