Simplify boxing Expr
This commit is contained in:
parent
5a977e6dde
commit
42369628b6
16 changed files with 68 additions and 62 deletions
|
|
@ -17,7 +17,7 @@ enum Prefix {
|
|||
|
||||
impl Prefix {
|
||||
fn into_expr(self, span: Span, expr: Expr) -> Expr {
|
||||
let expr = Box::new(expr);
|
||||
let expr = expr.boxed();
|
||||
match self {
|
||||
Self::Neg { minus, s0 } => Expr::Neg {
|
||||
minus,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue