Use assert instead of assert_eq
Clippy emits: warning: used `assert_eq!` with a literal bool As suggested, use `assert` instead of `assert_eq`.
This commit is contained in:
parent
3173ef9dbb
commit
196492554d
|
@ -331,7 +331,7 @@ mod tests {
|
|||
assert_eq!(signature.to_base64(), signature.to_string());
|
||||
let signature2 = super::MessageSignature::from_str(&signature.to_string()).unwrap();
|
||||
let pubkey = signature2.recover_pubkey(&secp, msg_hash).unwrap();
|
||||
assert_eq!(pubkey.compressed, true);
|
||||
assert!(pubkey.compressed);
|
||||
assert_eq!(pubkey.inner, secp256k1::PublicKey::from_secret_key(&secp, &privkey));
|
||||
|
||||
let p2pkh = Address::p2pkh(&pubkey, Network::Bitcoin);
|
||||
|
|
Loading…
Reference in New Issue