Explorar el Código

remove some explicit clones

Getty Ritter hace 2 años
padre
commit
9ee0089470
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/interp.rs

+ 1 - 1
src/interp.rs

@@ -254,7 +254,7 @@ impl State {
                 } else {
                     self.scope
                         .borrow_mut()
-                        .insert(*name, NamedItem::Expr(expr.clone()));
+                        .insert(*name, NamedItem::Expr(*expr));
                 }
             }