mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 21:35:44 +00:00
Benchmark macro: Allow multiple bounds in where (#8116)
This commit is contained in:
@@ -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 )*
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user