Fix varint bench failed (#457)

This commit is contained in:
ygf11 2021-12-23 00:38:57 +08:00 committed by GitHub
parent dbb9a43ccd
commit f2d2fc05a8
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ fn slice_varint_u16(c: &mut Criterion) {
c.bench_function("slice_varint_u16", |b| {
b.iter(|| {
let _: (Vec<u8>, usize) = bincode::decode_from_slice(&bytes, config).unwrap();
let _: (Vec<u16>, usize) = bincode::decode_from_slice(&bytes, config).unwrap();
})
});
}
@ -46,7 +46,7 @@ fn slice_varint_u32(c: &mut Criterion) {
c.bench_function("slice_varint_u32", |b| {
b.iter(|| {
let _: (Vec<u16>, usize) = bincode::decode_from_slice(&bytes, config).unwrap();
let _: (Vec<u32>, usize) = bincode::decode_from_slice(&bytes, config).unwrap();
})
});
}