Skip to content

Commit

Permalink
Merge pull request RustCrypto#155 from RustCrypto/crypto-mac/fix-2018…
Browse files Browse the repository at this point in the history
…-macros-for-bencher

crypto-mac: use 2018 edition module syntax for `bench` macro
  • Loading branch information
tarcieri committed May 31, 2020
2 parents 03032f3 + d7e7dcf commit f1ae0b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crypto-mac/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ macro_rules! bench {
use crypto_mac::{Mac, NewMac};
use test::Bencher;

bench!(bench1_10, $engine, 10);
bench!(bench2_100, $engine, 100);
bench!(bench3_1000, $engine, 1000);
bench!(bench3_10000, $engine, 10000);
$crate::bench!(bench1_10, $engine, 10);
$crate::bench!(bench2_100, $engine, 100);
$crate::bench!(bench3_1000, $engine, 1000);
$crate::bench!(bench3_10000, $engine, 10000);
};
}

0 comments on commit f1ae0b0

Please sign in to comment.