Skip to content

Commit

Permalink
Clippy warnings resolved
Browse files Browse the repository at this point in the history
Co-authored-by: Mihai Blacioti <[email protected]>
  • Loading branch information
andreivasilescu24 and JustEatAnApple committed Aug 30, 2024
1 parent d143418 commit eee44a9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions vm/src/crypto_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
}

0 comments on commit eee44a9

Please sign in to comment.