Skip to content

Commit 22af826

Browse files
committed
silly lints
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent 0666e18 commit 22af826

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vortex-array/benches/to_arrow.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
#![expect(clippy::unwrap_used)]
5+
46
use std::sync::Arc;
57

68
use divan::Bencher;
@@ -75,7 +77,7 @@ fn array() -> ArrayRef {
7577

7678
#[divan::bench]
7779
fn to_arrow_dtype(bencher: Bencher) {
78-
bencher.with_inputs(|| schema()).bench_values(|dtype| {
80+
bencher.with_inputs(schema).bench_values(|dtype| {
7981
#[expect(deprecated, reason = "benchmarking deprecated code path")]
8082
dtype.to_arrow_dtype().unwrap()
8183
});
@@ -93,7 +95,7 @@ fn ArrowExportVTable_to_arrow_field(bencher: Bencher) {
9395
);
9496

9597
bencher
96-
.with_inputs(|| schema())
98+
.with_inputs(schema)
9799
.bench_values(|dtype| LEGACY_SESSION.arrow().to_arrow_field("", &dtype).unwrap())
98100
}
99101

0 commit comments

Comments
 (0)