Clippy fix in eval
This commit is contained in:
parent
9b5c3629c0
commit
93d0a2cd7d
@ -186,7 +186,7 @@ impl<'a> State<'a> {
|
|||||||
for stmt in stmts {
|
for stmt in stmts {
|
||||||
ret = self.statement(stmt)?;
|
ret = self.statement(stmt)?;
|
||||||
}
|
}
|
||||||
Ok(ret.unwrap_or(Node::Expr(Expr::unit())))
|
Ok(ret.unwrap_or_else(|| Node::Expr(Expr::unit())))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn expression(&mut self, node: Node) -> EvalResult<Node> {
|
fn expression(&mut self, node: Node) -> EvalResult<Node> {
|
||||||
|
Loading…
Reference in New Issue
Block a user