Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
quininer authored and djkoloski committed Nov 1, 2023
1 parent 76db4d4 commit 2462b2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bench_cbor4ii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ where
let mut serialize_buffer = vec![0; BUFFER_LEN];
group.bench_function("serialize", |b| {
b.iter(|| {
serialize_buffer = cbor4ii::serde::to_vec(std::mem::take(black_box(&mut serialize_buffer)), black_box(&data))
.unwrap();
serialize_buffer = cbor4ii::serde::to_vec(
std::mem::take(black_box(&mut serialize_buffer)),
black_box(&data),
)
.unwrap();
black_box(());
})
});
Expand Down

0 comments on commit 2462b2b

Please sign in to comment.