Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Dec 29, 2023
1 parent 35ea802 commit 1d51b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 3 additions & 15 deletions benches/varint_bench/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
});

group.bench_function("varint-simd", |b| {
b.iter_batched(
|| rng.gen::<u16>(),
encode,
BatchSize::SmallInput,
)
b.iter_batched(|| rng.gen::<u16>(), encode, BatchSize::SmallInput)
});
group.finish();

Expand Down Expand Up @@ -565,11 +561,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
});

group.bench_function("varint-simd", |b| {
b.iter_batched(
|| rng.gen::<u32>(),
encode,
BatchSize::SmallInput,
)
b.iter_batched(|| rng.gen::<u32>(), encode, BatchSize::SmallInput)
});
group.finish();

Expand Down Expand Up @@ -663,11 +655,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
});

group.bench_function("varint-simd", |b| {
b.iter_batched(
|| rng.gen::<u64>(),
encode,
BatchSize::SmallInput,
)
b.iter_batched(|| rng.gen::<u64>(), encode, BatchSize::SmallInput)
});
group.finish();
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ mod tests {
#[cfg(target_feature = "avx2")]
use crate::decode_two_wide_unsafe;
use crate::{
decode, decode_len, decode_eight_u8_unsafe, decode_four_unsafe, decode_two_unsafe, encode,
encode_to_slice, VarIntTarget
decode, decode_eight_u8_unsafe, decode_four_unsafe, decode_len, decode_two_unsafe, encode,
encode_to_slice, VarIntTarget,
};

use lazy_static::lazy_static;
Expand Down

0 comments on commit 1d51b0b

Please sign in to comment.