Skip to content

Commit

Permalink
add trait bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 17, 2020
1 parent da6b4f9 commit 12b08b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ macro_rules! benchmark_backend {
#[allow(unused_variables)]
impl<T: Trait $( <$instance>, I: Instance)? >
$crate::BenchmarkingSetup<T $(, $instance)? > for $name
where $( $where_clause )*
where T: frame_system::Trait, $( $where_clause )*
{
fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> {
vec! [
Expand Down Expand Up @@ -659,7 +659,7 @@ macro_rules! selected_benchmark {
// Allow us to select a benchmark from the list of available benchmarks.
impl<T: Trait $( <$instance>, I: Instance )? >
$crate::BenchmarkingSetup<T $(, $instance )? > for SelectedBenchmark
where $( $where_clause )*
where T: frame_system::Trait, $( $where_clause )*
{
fn components(&self) -> Vec<($crate::BenchmarkParameter, u32, u32)> {
match self {
Expand Down

0 comments on commit 12b08b7

Please sign in to comment.