From a91e07b9b217c38a1216d3488d0ba76195ee661c Mon Sep 17 00:00:00 2001 From: zealchen <283559115@qq.com> Date: Tue, 9 Apr 2024 17:18:42 +0800 Subject: [PATCH] fix clippy --- src/benchmarks/src/replay_bench.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/benchmarks/src/replay_bench.rs b/src/benchmarks/src/replay_bench.rs index 2088c40335..d3f5213442 100644 --- a/src/benchmarks/src/replay_bench.rs +++ b/src/benchmarks/src/replay_bench.rs @@ -14,6 +14,12 @@ pub struct ReplayBench { table: FixedSchemaTable, } +impl Default for ReplayBench { + fn default() -> Self { + ReplayBench::new() + } +} + impl ReplayBench { pub fn new() -> Self { let runtime = util::new_runtime(1); @@ -42,7 +48,7 @@ impl ReplayBench { ReplayBench { runtime: Arc::new(runtime), - test_ctx: test_ctx, + test_ctx, table: fixed_schema_table, } }