Benchmark macro: Allow multiple bounds in where (#8116)

This commit is contained in:
Albrecht
2021-02-18 12:47:33 +01:00
committed by GitHub
parent afc4b9bb95
commit 0b6fbe7315
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -199,12 +199,12 @@ macro_rules! benchmarks_iter {
{ $( $where_clause:tt )* }
( $( $names:tt )* )
( $( $names_extra:tt )* )
where_clause { where $( $where_ty:ty: $where_bound:path ),* $(,)? }
where_clause { where $( $where_bound:tt )* }
$( $rest:tt )*
) => {
$crate::benchmarks_iter! {
{ $( $instance)? }
{ $( $where_ty: $where_bound ),* }
{ $( $where_bound )* }
( $( $names )* )
( $( $names_extra )* )
$( $rest )*
+2 -1
View File
@@ -138,7 +138,8 @@ mod benchmarks {
crate::benchmarks!{
where_clause {
where
<T as pallet_test::OtherConfig>::OtherEvent: Into<<T as pallet_test::Config>::Event>
<T as pallet_test::OtherConfig>::OtherEvent: Into<<T as pallet_test::Config>::Event> + Clone,
<T as pallet_test::Config>::Event: Clone,
}
set_value {