From b005ba45695758d994377ef9edcbf6e09328a71a Mon Sep 17 00:00:00 2001 From: Michail Safronov Date: Sun, 26 May 2024 12:34:20 +0500 Subject: [PATCH] add default for BenchArgs --- src/bench/args.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bench/args.rs b/src/bench/args.rs index 07fda87..9c664aa 100644 --- a/src/bench/args.rs +++ b/src/bench/args.rs @@ -144,6 +144,12 @@ impl BenchArgs { } } +impl Default for BenchArgs { + fn default() -> Self { + Self::new() + } +} + impl BenchArgsRunner { #[inline] pub(crate) fn bench(&self, bencher: Bencher, index: usize) {