From 1d51b0b5276efab6d1deff76a28081493b2f23ec Mon Sep 17 00:00:00 2001 From: Andrew Sun Date: Fri, 29 Dec 2023 12:21:26 -0500 Subject: [PATCH] cargo fmt --- benches/varint_bench/main.rs | 18 +++--------------- src/lib.rs | 4 ++-- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/benches/varint_bench/main.rs b/benches/varint_bench/main.rs index 4387ebf..7f36c1e 100644 --- a/benches/varint_bench/main.rs +++ b/benches/varint_bench/main.rs @@ -468,11 +468,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { }); group.bench_function("varint-simd", |b| { - b.iter_batched( - || rng.gen::(), - encode, - BatchSize::SmallInput, - ) + b.iter_batched(|| rng.gen::(), encode, BatchSize::SmallInput) }); group.finish(); @@ -565,11 +561,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { }); group.bench_function("varint-simd", |b| { - b.iter_batched( - || rng.gen::(), - encode, - BatchSize::SmallInput, - ) + b.iter_batched(|| rng.gen::(), encode, BatchSize::SmallInput) }); group.finish(); @@ -663,11 +655,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { }); group.bench_function("varint-simd", |b| { - b.iter_batched( - || rng.gen::(), - encode, - BatchSize::SmallInput, - ) + b.iter_batched(|| rng.gen::(), encode, BatchSize::SmallInput) }); group.finish(); } diff --git a/src/lib.rs b/src/lib.rs index 37fd758..b80418e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;