Patchwork D7654: rust-index: add a `inner` method to the Index struct

login
register
mail settings
Submitter phabricator
Date Dec. 23, 2019, 6:07 p.m.
Message ID <53030c40112571683d5f2b95ebf9b201@localhost.localdomain>
Download mbox | patch
Permalink /patch/44032/
State Not Applicable
Headers show

Comments

phabricator - Dec. 23, 2019, 6:07 p.m.
Closed by commit rHGab3fd8077f5e: rust-index: add a `inner` method to the Index struct (authored by gracinet).
This revision was automatically updated to reflect the committed changes.

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D7654?vs=18700&id=18919#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7654?vs=18700&id=18919

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7654/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7654

AFFECTED FILES
  rust/hg-cpython/src/cindex.rs

CHANGE DETAILS




To: marmoute, #hg-reviewers, Alphare, indygreg
Cc: durin42, kevincox, mercurial-devel

Patch

diff --git a/rust/hg-cpython/src/cindex.rs b/rust/hg-cpython/src/cindex.rs
--- a/rust/hg-cpython/src/cindex.rs
+++ b/rust/hg-cpython/src/cindex.rs
@@ -71,6 +71,11 @@ 
             capi: unsafe { revlog_capi::retrieve(py)? },
         })
     }
+
+    /// return a reference to the CPython Index object in this Struct
+    pub fn inner(&self) -> &PyObject {
+        &self.index
+    }
 }
 
 impl Clone for Index {