fix tests
This commit is contained in:
1 parent
6c28de7d05
commit
6a46a7c4fb
1 file changed
+6
@@ -103,6 +103,12 @@ impl BoxedCellSlice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn transfer(&self, other: &Self) {
|
pub fn transfer(&self, other: &Self) {
|
||||||
|
unsafe {
|
||||||
|
*self.0.get() = (*other.0.get()).clone();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn take_from(&self, other: &Self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
*self.0.get() = (*other.0.get()).take();
|
*self.0.get() = (*other.0.get()).take();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user