##// END OF EJS Templates
rust-index: use the Rust index in `partialmatch`
Raphaël Gomès -
r52103:72d16685 default
parent child Browse files
Show More
@@ -117,7 +117,7 b' py_class!(pub class MixedIndex |py| {'
117 def partialmatch(&self, node: PyObject) -> PyResult<Option<PyBytes>> {
117 def partialmatch(&self, node: PyObject) -> PyResult<Option<PyBytes>> {
118 let opt = self.get_nodetree(py)?.borrow();
118 let opt = self.get_nodetree(py)?.borrow();
119 let nt = opt.as_ref().unwrap();
119 let nt = opt.as_ref().unwrap();
120 let idx = &*self.cindex(py).borrow();
120 let idx = &*self.index(py).borrow();
121
121
122 let node_as_string = if cfg!(feature = "python3-sys") {
122 let node_as_string = if cfg!(feature = "python3-sys") {
123 node.cast_as::<PyString>(py)?.to_string(py)?.to_string()
123 node.cast_as::<PyString>(py)?.to_string(py)?.to_string()
General Comments 0
You need to be logged in to leave comments. Login now