Skip to content

Commit

Permalink
modify bench function error
Browse files Browse the repository at this point in the history
  • Loading branch information
FullyRobert committed May 13, 2022
1 parent 208e5ca commit 6386a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sm2/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ mod signature_benches {
fn sign_bench(bench: &mut test::Bencher) {
let test_word = b"hello world";
let ctx = SigCtx::new();
let (pk, sk) = ctx.new_keypair();
let (pk, sk) = ctx.new_keypair().unwrap();

bench.iter(|| {
let _ = ctx.sign(test_word, &sk, &pk);
Expand All @@ -501,7 +501,7 @@ mod signature_benches {
fn verify_bench(bench: &mut test::Bencher) {
let test_word = b"hello world";
let ctx = SigCtx::new();
let (pk, sk) = ctx.new_keypair();
let (pk, sk) = ctx.new_keypair().unwrap();
let sig = ctx.sign(test_word, &sk, &pk).unwrap();

bench.iter(|| {
Expand Down

0 comments on commit 6386a34

Please sign in to comment.