From f41c700a84fa68ab518f9c425954434b694dea11 Mon Sep 17 00:00:00 2001 From: Xavier Deguillard Date: Thu, 23 May 2019 15:35:46 -0700 Subject: [PATCH] bindings: make mutabledeltastore public Summary: This will be used in the edenapi binding and therefore needs to be public. Reviewed By: kulshrax Differential Revision: D15474312 fbshipit-source-id: fcef80ba414ae63908d4a4191003fabe0f07c254 --- edenscm/mercurial/rust/bindings/src/revisionstore/mod.rs | 2 +- edenscm/mercurial/rust/bindings/src/revisionstore/pyext.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edenscm/mercurial/rust/bindings/src/revisionstore/mod.rs b/edenscm/mercurial/rust/bindings/src/revisionstore/mod.rs index fa749bbde7..8cf5774359 100644 --- a/edenscm/mercurial/rust/bindings/src/revisionstore/mod.rs +++ b/edenscm/mercurial/rust/bindings/src/revisionstore/mod.rs @@ -363,7 +363,7 @@ fn make_mutabledeltastore( Ok(store) } -py_class!(class mutabledeltastore |py| { +py_class!(pub class mutabledeltastore |py| { data store: PyOptionalRefCell>; def __new__(_cls, packfilepath: Option = None, indexedlogpath: Option = None) -> PyResult { diff --git a/edenscm/mercurial/rust/bindings/src/revisionstore/pyext.rs b/edenscm/mercurial/rust/bindings/src/revisionstore/pyext.rs index 44a77af184..f766ed5554 100644 --- a/edenscm/mercurial/rust/bindings/src/revisionstore/pyext.rs +++ b/edenscm/mercurial/rust/bindings/src/revisionstore/pyext.rs @@ -50,7 +50,7 @@ impl OptionalRefCell { } /// Wrapper around `OptionalRefCell` to convert from `Result` to `PyResult` -pub(crate) struct PyOptionalRefCell { +pub struct PyOptionalRefCell { inner: OptionalRefCell, }