瀏覽代碼

fix tests

Evan Almloff 2 年之前
父節點
當前提交
6a46a7c4fb
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/core/src/nodes.rs

+ 6 - 0
packages/core/src/nodes.rs

@@ -103,6 +103,12 @@ impl BoxedCellSlice {
     }
 
     pub fn transfer(&self, other: &Self) {
+        unsafe {
+            *self.0.get() = (*other.0.get()).clone();
+        }
+    }
+
+    pub fn take_from(&self, other: &Self) {
         unsafe {
             *self.0.get() = (*other.0.get()).take();
         }