fix: Remove truncate from encoding benchmark
The first thing the `encode` function does is truncate the `dst` buffer,
so this should never be necessary inside the code being benchmarked for
testing encoders.
@@ -43,7 +43,6 @@ fn benchmark_encode<T>(
let decoded = decoded_value_generation(batch_size);
let mut encoded = vec![];
b.iter(|| {
- encoded.truncate(0);
encode(&decoded, &mut encoded).unwrap();
});
},
