소스 검색

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();
         }