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:
parent
ea8ed8d5da
commit
fa8540cb15
26 changed files with 90 additions and 90 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue