We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c26674 commit 042b43fCopy full SHA for 042b43f
plugins/warp/benches/convert.rs
@@ -17,7 +17,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) {
17
c.bench_function("type conversion all functions", |b| {
18
b.iter(|| {
19
for func in &functions {
20
- from_bn_type(&bv, func.function_type(), u8::MAX);
+ from_bn_type(&bv, &func.function_type(), u8::MAX);
21
}
22
})
23
});
@@ -26,7 +26,7 @@ pub fn type_conversion_benchmark(c: &mut Criterion) {
26
c.bench_function("type conversion all types", |b| {
27
28
for ty in &types {
29
- from_bn_type(&bv, ty.type_object().clone(), u8::MAX);
+ from_bn_type(&bv, &ty.type_object(), u8::MAX);
30
31
32
0 commit comments