Skip to content

Commit 042b43f

Browse files
committed
WARP: Misc bench fix
1 parent 9c26674 commit 042b43f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/warp/benches/convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) {
1717
c.bench_function("type conversion all functions", |b| {
1818
b.iter(|| {
1919
for func in &functions {
20-
from_bn_type(&bv, func.function_type(), u8::MAX);
20+
from_bn_type(&bv, &func.function_type(), u8::MAX);
2121
}
2222
})
2323
});
@@ -26,7 +26,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) {
2626
c.bench_function("type conversion all types", |b| {
2727
b.iter(|| {
2828
for ty in &types {
29-
from_bn_type(&bv, ty.type_object().clone(), u8::MAX);
29+
from_bn_type(&bv, &ty.type_object(), u8::MAX);
3030
}
3131
})
3232
});

0 commit comments

Comments
 (0)