Skip to content
Snippets Groups Projects
Commit 0b6fbe73 authored by Albrecht's avatar Albrecht Committed by GitHub
Browse files

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

parent afc4b9bb
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment