We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0666e18 commit 22af826Copy full SHA for 22af826
1 file changed
vortex-array/benches/to_arrow.rs
@@ -1,6 +1,8 @@
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4
+#![expect(clippy::unwrap_used)]
5
+
6
use std::sync::Arc;
7
8
use divan::Bencher;
@@ -75,7 +77,7 @@ fn array() -> ArrayRef {
75
77
76
78
#[divan::bench]
79
fn to_arrow_dtype(bencher: Bencher) {
- bencher.with_inputs(|| schema()).bench_values(|dtype| {
80
+ bencher.with_inputs(schema).bench_values(|dtype| {
81
#[expect(deprecated, reason = "benchmarking deprecated code path")]
82
dtype.to_arrow_dtype().unwrap()
83
});
@@ -93,7 +95,7 @@ fn ArrowExportVTable_to_arrow_field(bencher: Bencher) {
93
95
);
94
96
97
bencher
- .with_inputs(|| schema())
98
+ .with_inputs(schema)
99
.bench_values(|dtype| LEGACY_SESSION.arrow().to_arrow_field("", &dtype).unwrap())
100
}
101
0 commit comments