|
@@ -51,7 +51,7 @@ fn struct_walkable(input: &syn::DeriveInput, ds: &syn::DataStruct) -> TokenStrea
|
|
|
syn::Fields::Unnamed(u) => fields_walkable(u.unnamed.iter()),
|
|
|
};
|
|
|
|
|
|
- let ret = quote! {
|
|
|
+ quote! {
|
|
|
impl ::rustructure::Walkable for #name {
|
|
|
fn walk_with<W: ::rustructure::Walker>(walker: &mut W) {
|
|
|
struct Fields {};
|
|
@@ -64,10 +64,7 @@ fn struct_walkable(input: &syn::DeriveInput, ds: &syn::DataStruct) -> TokenStrea
|
|
|
walker.visit_struct::<Fields>(#name_str);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- .into();
|
|
|
-
|
|
|
- ret
|
|
|
+ }.into()
|
|
|
}
|
|
|
|
|
|
fn enum_walkable(input: &syn::DeriveInput, de: &syn::DataEnum) -> TokenStream {
|