Skip to content

Commit

Permalink
minor renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed May 3, 2024
1 parent 3ef301d commit 8103efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn parse_ast_pair(p: Pair<Rule>) -> Result<Option<AstNode>, AstError> {
}),
};

let option = node_type
let node_value = node_type
.must_capture_value()
.then(|| p.as_str().to_string());

Expand All @@ -125,7 +125,7 @@ fn parse_ast_pair(p: Pair<Rule>) -> Result<Option<AstNode>, AstError> {
Some(
AstNode {
node_type: node_type,
value: option,
value: node_value,
children: children?,
}
)
Expand Down

0 comments on commit 8103efb

Please sign in to comment.