equal
deleted
inserted
replaced
250 can_append: bool, |
250 can_append: bool, |
251 ) -> PyResult<PyObject> { |
251 ) -> PyResult<PyObject> { |
252 let inner = self.inner(py).borrow(); |
252 let inner = self.inner(py).borrow(); |
253 let result = inner.pack_v2(can_append); |
253 let result = inner.pack_v2(can_append); |
254 match result { |
254 match result { |
255 Ok((packed, tree_metadata, append)) => { |
255 Ok((packed, tree_metadata, append, _old_data_size)) => { |
256 let packed = PyBytes::new(py, &packed); |
256 let packed = PyBytes::new(py, &packed); |
257 let tree_metadata = PyBytes::new(py, tree_metadata.as_bytes()); |
257 let tree_metadata = PyBytes::new(py, tree_metadata.as_bytes()); |
258 let tuple = (packed, tree_metadata, append); |
258 let tuple = (packed, tree_metadata, append); |
259 Ok(tuple.to_py_object(py).into_object()) |
259 Ok(tuple.to_py_object(py).into_object()) |
260 }, |
260 }, |