Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Apr 5, 2023
1 parent cbbbdbb commit 5494075
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ fn bench_encode(c: &mut Criterion) {
c.bench_function("encode_1000_u64", |b| {
b.iter(|| {
let mut out = BytesMut::new();
fastrlp::encode_list(
(0..1000u64).into_iter().collect::<Vec<_>>().as_slice(),
&mut out,
);
fastrlp::encode_list((0..1000u64).collect::<Vec<_>>().as_slice(), &mut out);
})
});
}
Expand All @@ -49,7 +46,7 @@ fn bench_decode(c: &mut Criterion) {
})
});
c.bench_function("decode_1000_u64", |b| {
let input = (0..1000u64).into_iter().collect::<Vec<_>>();
let input = (0..1000u64).collect::<Vec<_>>();
let mut data = BytesMut::new();
fastrlp::encode_list(input.as_slice(), &mut data);
b.iter(|| {
Expand Down

0 comments on commit 5494075

Please sign in to comment.