mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
fix stack overflow error
This commit is contained in:
parent
6cdf0983f8
commit
17540a6bd6
@ -331,10 +331,16 @@ impl<'ast> From<BinaryExpression<'ast>> for Expression {
|
||||
Box::new(Expression::from(*expression.right)),
|
||||
Span::from(expression.span),
|
||||
),
|
||||
BinaryOperation::Ne => Expression::Not(
|
||||
Box::new(Expression::from(expression.clone())),
|
||||
Span::from(expression.span),
|
||||
),
|
||||
BinaryOperation::Ne => {
|
||||
let span = Span::from(expression.span);
|
||||
let negated = Expression::Eq(
|
||||
Box::new(Expression::from(*expression.left)),
|
||||
Box::new(Expression::from(*expression.right)),
|
||||
span.clone(),
|
||||
);
|
||||
|
||||
Expression::Not(Box::new(negated), span.clone())
|
||||
}
|
||||
BinaryOperation::Ge => Expression::Ge(
|
||||
Box::new(Expression::from(*expression.left)),
|
||||
Box::new(Expression::from(*expression.right)),
|
||||
|
Loading…
Reference in New Issue
Block a user