File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
proc_macro_example_derive/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub fn derive_reflective(input: TokenStream) -> TokenStream {
74
74
quote ! ( get_variants) ,
75
75
Box :: new ( variants. iter ( ) . map ( |v| v. ident . to_string ( ) ) ) ,
76
76
) ,
77
- RIT :: Union ( union) => get_item (
77
+ RIT :: UnionFields ( union) => get_item (
78
78
quote ! ( get_fields) ,
79
79
Box :: new (
80
80
union
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub enum ReflectiveInputType<'a> {
36
36
// be one more type after the last comma token parsed. We take these things for granted as
37
37
// users but this has to be addressed while we're parsing Rust code.
38
38
Variants ( & ' a Punctuated < Variant , Token ! [ , ] > ) ,
39
- Union ( & ' a FieldsNamed ) ,
39
+ UnionFields ( & ' a FieldsNamed ) ,
40
40
}
41
41
42
42
/// Wrapper around `syn::DeriveInput` with extra reflection functionality.
@@ -49,7 +49,7 @@ impl ReflectiveInput {
49
49
match & self . 0 . data {
50
50
Data :: Struct ( v) => RIT :: Fields ( & v. fields ) ,
51
51
Data :: Enum ( v) => RIT :: Variants ( & v. variants ) ,
52
- Data :: Union ( v) => RIT :: Union ( & v. fields ) ,
52
+ Data :: Union ( v) => RIT :: UnionFields ( & v. fields ) ,
53
53
}
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments