Show More
@@ -105,7 +105,7 b' py_class!(pub class MixedIndex |py| {' | |||||
105 | def shortest(&self, node: PyBytes) -> PyResult<usize> { |
|
105 | def shortest(&self, node: PyBytes) -> PyResult<usize> { | |
106 | let opt = self.get_nodetree(py)?.borrow(); |
|
106 | let opt = self.get_nodetree(py)?.borrow(); | |
107 | let nt = opt.as_ref().unwrap(); |
|
107 | let nt = opt.as_ref().unwrap(); | |
108 |
let idx = &*self. |
|
108 | let idx = &*self.index(py).borrow(); | |
109 | match nt.unique_prefix_len_node(idx, &node_from_py_bytes(py, &node)?) |
|
109 | match nt.unique_prefix_len_node(idx, &node_from_py_bytes(py, &node)?) | |
110 | { |
|
110 | { | |
111 | Ok(Some(l)) => Ok(l), |
|
111 | Ok(Some(l)) => Ok(l), |
General Comments 0
You need to be logged in to leave comments.
Login now