From 7b3c07e2bd313fbd983972224158dce7be23c3a9 Mon Sep 17 00:00:00 2001 From: Jay Miller <3744812+jaylmiller@users.noreply.github.com> Date: Mon, 20 Mar 2023 18:45:10 -0400 Subject: [PATCH] clippy --- benchmarks/src/bin/tpch.rs | 2 +- benchmarks/src/lib.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/benchmarks/src/bin/tpch.rs b/benchmarks/src/bin/tpch.rs index a24381648338..f78ed5cd9e51 100644 --- a/benchmarks/src/bin/tpch.rs +++ b/benchmarks/src/bin/tpch.rs @@ -198,7 +198,7 @@ async fn benchmark_datafusion( } if let Some(path) = &opt.output_path { - std::fs::write(path, &benchmark_run.to_json())?; + std::fs::write(path, benchmark_run.to_json())?; } Ok(results) } diff --git a/benchmarks/src/lib.rs b/benchmarks/src/lib.rs index 116b3ecef878..b5a72036abcd 100644 --- a/benchmarks/src/lib.rs +++ b/benchmarks/src/lib.rs @@ -36,6 +36,12 @@ pub struct RunContext { pub arguments: Vec, } +impl Default for RunContext { + fn default() -> Self { + Self::new() + } +} + impl RunContext { pub fn new() -> Self { Self {