From 9d5182e844182db691af4e2472101535dc0c9b02 Mon Sep 17 00:00:00 2001 From: Shaopeng Wang <spxwang@gmail.com> Date: Wed, 16 Sep 2020 18:55:16 +1200 Subject: [PATCH] Fix runtime_benchmarks_instance macro. (#285) * Fix runtime_benchmarks_instance macro. Co-authored-by: zjb0807 <zjb0807@qq.com> --- benchmarking/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarking/src/lib.rs b/benchmarking/src/lib.rs index a5f89f0..c118957 100644 --- a/benchmarking/src/lib.rs +++ b/benchmarking/src/lib.rs @@ -200,7 +200,7 @@ macro_rules! runtime_benchmarks_instance { $( $rest:tt )* ) => { $crate::benchmarks_iter!( - { I } + { $instance } $runtime $pallet { $( { $common , $common_from , $common_to , $common_instancer } )* } @@ -569,7 +569,7 @@ macro_rules! benchmark_backend { #[allow(non_camel_case_types)] struct $name; #[allow(unused_variables)] - impl<$( <$instance>, I: Instance)? > $crate::BenchmarkingSetup<$runtime $(, $instance)?> for $name { + impl $crate::BenchmarkingSetup<$runtime $(, $instance)?> for $name { fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> { vec! [ $( @@ -652,7 +652,7 @@ macro_rules! selected_benchmark { } // Allow us to select a benchmark from the list of available benchmarks. - impl<$( <$instance>, I: Instance)? > $crate::BenchmarkingSetup<$runtime $(, $instance)?> for SelectedBenchmark { + impl $crate::BenchmarkingSetup<$runtime $(, $instance)?> for SelectedBenchmark { fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> { match self { $( -- GitLab