Skip to content

Commit

Permalink
Add cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 16, 2024
1 parent cda2974 commit fe5806f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/generate-code/src/generators/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ fn define_fields(node_types: &[&Item]) -> Vec<Item> {
}

items.push(parse_quote!(
#[cfg(feature = "path")]
pub mod fields {
#(#defs)*
}
Expand Down

0 comments on commit fe5806f

Please sign in to comment.