##// END OF EJS Templates
rust-index: return variables systematic naming convention...
Georges Racinet -
r52095:16d477bb default
parent child Browse files
Show More
@@ -218,10 +218,11 b' py_class!(pub class MixedIndex |py| {'
218 218 def pack_header(&self, *args, **kw) -> PyResult<PyObject> {
219 219 let rindex = self.index(py).borrow();
220 220 let packed = rindex.pack_header(args.get_item(py, 0).extract(py)?);
221 let packed = PyBytes::new(py, &packed).into_object();
222 let cpacked = self.call_cindex(py, "pack_header", args, kw)?;
223 assert_py_eq(py, "pack_header", &packed, &cpacked)?;
224 Ok(packed)
221 let rust_res = PyBytes::new(py, &packed).into_object();
222
223 let c_res = self.call_cindex(py, "pack_header", args, kw)?;
224 assert_py_eq(py, "pack_header", &rust_res, &c_res)?;
225 Ok(rust_res)
225 226 }
226 227
227 228 /// get an index entry
General Comments 0
You need to be logged in to leave comments. Login now