From eee44a9e2223f852a16a5a8dde92627abda9ab4e Mon Sep 17 00:00:00 2001 From: Andrei Vasilescu Date: Fri, 30 Aug 2024 15:41:52 +0300 Subject: [PATCH] Clippy warnings resolved Co-authored-by: Mihai Blacioti --- vm/src/crypto_functions.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vm/src/crypto_functions.rs b/vm/src/crypto_functions.rs index 9d3d363d6b..118e791052 100644 --- a/vm/src/crypto_functions.rs +++ b/vm/src/crypto_functions.rs @@ -51,10 +51,7 @@ pub fn verify_bls_signature(key: &[u8], message: &[u8], signature: &[u8]) -> boo let verify_response = sig.verify(true, message, BLS_DST_VALUE, &[], &public_key, true); - match verify_response { - BLST_ERROR::BLST_SUCCESS => true, - _ => false, - } + matches!(verify_response, BLST_ERROR::BLST_SUCCESS) } pub fn verify_multi_bls_signature( @@ -92,8 +89,5 @@ pub fn verify_multi_bls_signature( true, ); - match verify_response { - BLST_ERROR::BLST_SUCCESS => true, - _ => false, - } + matches!(verify_response, BLST_ERROR::BLST_SUCCESS) }