# HG changeset patch
# User Raphaël Gomès <rgomes@octobus.net>
# Date 1690987773 -7200
#      Wed Aug 02 16:49:33 2023 +0200
# Node ID 72d16685d63a0b605278fbae809a30245971f939
# Parent  e9d47e2f5dcf59fe57e9a26b040b98206f9cdc21
rust-index: use the Rust index in `partialmatch`

diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs
--- a/rust/hg-cpython/src/revlog.rs
+++ b/rust/hg-cpython/src/revlog.rs
@@ -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()