mirror of
https://github.com/danog/strum.git
synced 2024-11-30 04:28:59 +01:00
Add doc comment to struct generated by EnumIter
This commit is contained in:
parent
4f6a556b9a
commit
8febdbba1a
@ -67,7 +67,7 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
|
|||||||
let iter_name = syn::parse_str::<Ident>(&format!("{}Iter", name)).unwrap();
|
let iter_name = syn::parse_str::<Ident>(&format!("{}Iter", name)).unwrap();
|
||||||
|
|
||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#[allow(missing_docs)]
|
#[doc = "An iterator over the variants of [Self]"]
|
||||||
#vis struct #iter_name #ty_generics {
|
#vis struct #iter_name #ty_generics {
|
||||||
idx: usize,
|
idx: usize,
|
||||||
back_idx: usize,
|
back_idx: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user