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 {