rust-index: use the Rust index in `partialmatch`
authorRaphaël Gomès <rgomes@octobus.net>
Wed, 02 Aug 2023 16:49:33 +0200
changeset 51210 72d16685d63a
parent 51209 e9d47e2f5dcf
child 51211 b8c89957a6b7
rust-index: use the Rust index in `partialmatch`
rust/hg-cpython/src/revlog.rs
--- a/rust/hg-cpython/src/revlog.rs	Thu Aug 03 14:50:17 2023 +0200
+++ b/rust/hg-cpython/src/revlog.rs	Wed Aug 02 16:49:33 2023 +0200
@@ -117,7 +117,7 @@
     def partialmatch(&self, node: PyObject) -> PyResult<Option<PyBytes>> {
         let opt = self.get_nodetree(py)?.borrow();
         let nt = opt.as_ref().unwrap();
-        let idx = &*self.cindex(py).borrow();
+        let idx = &*self.index(py).borrow();
 
         let node_as_string = if cfg!(feature = "python3-sys") {
             node.cast_as::<PyString>(py)?.to_string(py)?.to_string()