##// END OF EJS Templates
rust-index: use the rust index in `shortest`
Raphaël Gomès -
r52101:274abd15 default
parent child Browse files
Show More
@@ -105,7 +105,7 b' py_class!(pub class MixedIndex |py| {'
105 105 def shortest(&self, node: PyBytes) -> PyResult<usize> {
106 106 let opt = self.get_nodetree(py)?.borrow();
107 107 let nt = opt.as_ref().unwrap();
108 let idx = &*self.cindex(py).borrow();
108 let idx = &*self.index(py).borrow();
109 109 match nt.unique_prefix_len_node(idx, &node_from_py_bytes(py, &node)?)
110 110 {
111 111 Ok(Some(l)) => Ok(l),
General Comments 0
You need to be logged in to leave comments. Login now