From 042b43f6d3f084526a0e5cf15e0ee93f9c849d27 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 13 Dec 2024 15:18:10 -0500 Subject: WARP: Misc bench fix --- plugins/warp/benches/convert.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/warp/benches/convert.rs b/plugins/warp/benches/convert.rs index e916d5df..15065d8f 100644 --- a/plugins/warp/benches/convert.rs +++ b/plugins/warp/benches/convert.rs @@ -17,7 +17,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) { c.bench_function("type conversion all functions", |b| { b.iter(|| { for func in &functions { - from_bn_type(&bv, func.function_type(), u8::MAX); + from_bn_type(&bv, &func.function_type(), u8::MAX); } }) }); @@ -26,7 +26,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) { c.bench_function("type conversion all types", |b| { b.iter(|| { for ty in &types { - from_bn_type(&bv, ty.type_object().clone(), u8::MAX); + from_bn_type(&bv, &ty.type_object(), u8::MAX); } }) }); -- cgit v1.3.1