1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-19 19:51:09 +00:00

refactor/polish ~ fix cargo clippy complaints (DRY struct def)

This commit is contained in:
Roy Ivy III 2019-12-26 15:08:10 -06:00
parent ea8ed8d5da
commit fa8540cb15
26 changed files with 90 additions and 90 deletions

View file

@ -68,9 +68,9 @@ impl ASTNode {
fn new_node(token_idx: usize, op_type: &str, operands: OperandsList) -> Box<ASTNode> {
Box::new(ASTNode::Node {
token_idx: token_idx,
token_idx,
op_type: op_type.into(),
operands: operands,
operands,
})
}
fn new_leaf(token_idx: usize, value: &str) -> Box<ASTNode> {