This commit is contained in:
Branislav Kontur
2024-01-31 14:42:47 +01:00
committed by GitHub
parent 261f4b713b
commit a03ef2791e
4 changed files with 3 additions and 5 deletions
@@ -18,7 +18,7 @@
use crate::pallet::Def;
use proc_macro2::TokenStream;
/// Expands `composite_enum` and adds the `VariantCount` implementation for it."
/// Expands `composite_enum` and adds the `VariantCount` implementation for it.
pub fn expand_composites(def: &mut Def) -> TokenStream {
let mut expand = quote::quote!();
let frame_support = &def.frame_support;
@@ -91,14 +91,12 @@ pub struct CompositeDef {
pub index: usize,
/// The composite keyword used (contains span).
pub composite_keyword: keyword::CompositeKeyword,
/// Name of the associated type.
pub ident: syn::Ident,
/// Type parameters and where clause attached to a declaration of the pallet::composite_enum.
pub generics: syn::Generics,
/// The span of the pallet::composite_enum attribute.
pub attr_span: proc_macro2::Span,
/// Variant count of the pallet::composite_enum.
pub variant_count: u32,
}