1
0
mirror of https://github.com/danog/strum.git synced 2024-11-26 12:04:38 +01:00

Merge branch 'jwodder-iter-traits'

This commit is contained in:
Peter Glotfelty 2023-10-29 12:30:34 -07:00
commit 62c1150844

View File

@ -159,6 +159,8 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
}
}
impl #impl_generics ::core::iter::FusedIterator for #iter_name #ty_generics #where_clause { }
impl #impl_generics Clone for #iter_name #ty_generics #where_clause {
fn clone(&self) -> #iter_name #ty_generics {
#iter_name {