Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaylmiller committed Mar 21, 2023
1 parent f45fe2c commit 7b3c07e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/src/bin/tpch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 6 additions & 0 deletions benchmarks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ pub struct RunContext {
pub arguments: Vec<String>,
}

impl Default for RunContext {
fn default() -> Self {
Self::new()
}
}

impl RunContext {
pub fn new() -> Self {
Self {
Expand Down

0 comments on commit 7b3c07e

Please sign in to comment.