Pallet macro support frame_system::Config with args (#8606)

This commit is contained in:
Bastian Köcher
2021-04-12 21:11:23 +02:00
committed by GitHub
parent 0cbd3b4f46
commit 6378a4ee78
2 changed files with 23 additions and 0 deletions
@@ -126,6 +126,10 @@ impl syn::parse::Parse for ConfigBoundParse {
input.parse::<syn::Token![::]>()?;
input.parse::<keyword::Config>()?;
if input.peek(syn::token::Lt) {
input.parse::<syn::AngleBracketedGenericArguments>()?;
}
Ok(Self(ident))
}
}