Skip to content

Commit 9d5182e

Browse files
shaunxwzjb0807
andauthored
Fix runtime_benchmarks_instance macro. (#285)
* Fix runtime_benchmarks_instance macro. Co-authored-by: zjb0807 <[email protected]>
1 parent 33b3982 commit 9d5182e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmarking/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ macro_rules! runtime_benchmarks_instance {
200200
$( $rest:tt )*
201201
) => {
202202
$crate::benchmarks_iter!(
203-
{ I }
203+
{ $instance }
204204
$runtime
205205
$pallet
206206
{ $( { $common , $common_from , $common_to , $common_instancer } )* }
@@ -569,7 +569,7 @@ macro_rules! benchmark_backend {
569569
#[allow(non_camel_case_types)]
570570
struct $name;
571571
#[allow(unused_variables)]
572-
impl<$( <$instance>, I: Instance)? > $crate::BenchmarkingSetup<$runtime $(, $instance)?> for $name {
572+
impl $crate::BenchmarkingSetup<$runtime $(, $instance)?> for $name {
573573
fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> {
574574
vec! [
575575
$(
@@ -652,7 +652,7 @@ macro_rules! selected_benchmark {
652652
}
653653

654654
// Allow us to select a benchmark from the list of available benchmarks.
655-
impl<$( <$instance>, I: Instance)? > $crate::BenchmarkingSetup<$runtime $(, $instance)?> for SelectedBenchmark {
655+
impl $crate::BenchmarkingSetup<$runtime $(, $instance)?> for SelectedBenchmark {
656656
fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> {
657657
match self {
658658
$(

0 commit comments

Comments
 (0)