Skip to content

Commit 4bb33f3

Browse files
committed
Use assert instead of assert_eq
Clippy emits: warning: used `assert_eq!` with a literal bool As suggested, use `assert` instead of `assert_eq`.
1 parent d1edc3b commit 4bb33f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ mod tests {
331331
assert_eq!(signature.to_base64(), signature.to_string());
332332
let signature2 = super::MessageSignature::from_str(&signature.to_string()).unwrap();
333333
let pubkey = signature2.recover_pubkey(&secp, msg_hash).unwrap();
334-
assert_eq!(pubkey.compressed, true);
334+
assert!(pubkey.compressed);
335335
assert_eq!(pubkey.inner, secp256k1::PublicKey::from_secret_key(&secp, &privkey));
336336

337337
let p2pkh = Address::p2pkh(&pubkey, Network::Bitcoin);

0 commit comments

Comments
 (0)