diff options
Diffstat (limited to 'src/parse/tests.rs')
| -rw-r--r-- | src/parse/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/tests.rs b/src/parse/tests.rs index 95d04928..632fe36e 100644 --- a/src/parse/tests.rs +++ b/src/parse/tests.rs @@ -102,7 +102,7 @@ macro_rules! Call { fn Unary(op: impl Into<Spanned<UnOp>>, expr: impl Into<Spanned<Expr>>) -> Expr { Expr::Unary(ExprUnary { op: op.into(), - expr: expr.into().map(Box::new), + expr: Box::new(expr.into()), }) } @@ -112,9 +112,9 @@ fn Binary( rhs: impl Into<Spanned<Expr>>, ) -> Expr { Expr::Binary(ExprBinary { - lhs: lhs.into().map(Box::new), + lhs: Box::new(lhs.into()), op: op.into(), - rhs: rhs.into().map(Box::new), + rhs: Box::new(rhs.into()), }) } |
