Skip to content

Commit

Permalink
tweak dev::block
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 12, 2024
1 parent c00ddc9 commit 021f308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cipher/src/dev/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ macro_rules! block_encryptor_bench {
#[bench]
pub fn $block_name(bh: &mut test::Bencher) {
#[allow(unused)]
use cipher::block::{BlockCipherEncrypt, BlockModeEncrypt};
use $crate::{BlockCipherEncrypt, BlockModeEncrypt};

let mut cipher = $init;
let mut blocks = vec![Default::default(); 1024];
Expand All @@ -310,7 +310,7 @@ macro_rules! block_encryptor_bench {
#[bench]
pub fn $blocks_name(bh: &mut test::Bencher) {
#[allow(unused)]
use cipher::block::{BlockCipherEncrypt, BlockModeEncrypt};
use $crate::{BlockCipherEncrypt, BlockModeEncrypt};

let mut cipher = $init;
let mut blocks = vec![Default::default(); 1024];
Expand Down Expand Up @@ -356,7 +356,7 @@ macro_rules! block_decryptor_bench {
#[bench]
pub fn $block_name(bh: &mut test::Bencher) {
#[allow(unused)]
use cipher::block::{BlockCipherDecrypt, BlockModeDecrypt};
use $crate::{BlockCipherDecrypt, BlockModeDecrypt};

let mut cipher = $init;
let mut blocks = vec![Default::default(); 1024];
Expand All @@ -373,7 +373,7 @@ macro_rules! block_decryptor_bench {
#[bench]
pub fn $blocks_name(bh: &mut test::Bencher) {
#[allow(unused)]
use cipher::block::{BlockCipherDecrypt, BlockModeDecrypt};
use $crate::{BlockCipherDecrypt, BlockModeDecrypt};

let mut cipher = $init;
let mut blocks = vec![Default::default(); 1024];
Expand Down

0 comments on commit 021f308

Please sign in to comment.