Skip to content

Commit 8788049

Browse files
committed
Fix clippy
1 parent 01b6225 commit 8788049

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎datafusion/optimizer/benches/optimize_projections.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ fn plan_small_schema() -> LogicalPlan {
203203
.unwrap()
204204
}
205205

206+
type BenchCase = (&'static str, fn() -> LogicalPlan);
207+
206208
fn bench_optimize_projections(c: &mut Criterion) {
207209
let rule = OptimizeProjections::new();
208210
let config = OptimizerContext::new();
209211
let mut group = c.benchmark_group("optimize_projections");
210212

211-
let cases: &[(&str, fn() -> LogicalPlan)] = &[
213+
let cases: &[BenchCase] = &[
212214
("tpch_q3", plan_tpch_q3),
213215
("tpch_q5", plan_tpch_q5),
214216
("clickbench_groupby", plan_clickbench_groupby),

0 commit comments

Comments
 (0)