From 196492554dc1939f7553e3db9d7b1dd75a76dbde Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 20 Jul 2022 12:58:51 +1000 Subject: [PATCH] Use assert instead of assert_eq Clippy emits: warning: used `assert_eq!` with a literal bool As suggested, use `assert` instead of `assert_eq`. --- src/util/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/misc.rs b/src/util/misc.rs index a9600172..4d106707 100644 --- a/src/util/misc.rs +++ b/src/util/misc.rs @@ -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);