Skip to content

Commit

Permalink
🐛 make node struct fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdd committed May 30, 2023
1 parent 194c631 commit 2d30614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn generate(input: TokenStream) -> TokenStream {
let fields = data.members
.iter()
.map(|NodeDataStructField { name, datatype }| quote!{
#name : #datatype
pub #name : #datatype
});

quote!{
Expand Down

0 comments on commit 2d30614

Please sign in to comment.