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
This commit is contained in:
Xavier Deguillard 2019-05-23 15:35:46 -07:00 committed by Facebook Github Bot
parent 2642aad107
commit f41c700a84
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ fn make_mutabledeltastore(
Ok(store)
}
py_class!(class mutabledeltastore |py| {
py_class!(pub class mutabledeltastore |py| {
data store: PyOptionalRefCell<Box<dyn MutableDeltaStore + Send>>;
def __new__(_cls, packfilepath: Option<PyBytes> = None, indexedlogpath: Option<PyBytes> = None) -> PyResult<mutabledeltastore> {

View File

@ -50,7 +50,7 @@ impl<T> OptionalRefCell<T> {
}
/// Wrapper around `OptionalRefCell<T>` to convert from `Result<T>` to `PyResult<T>`
pub(crate) struct PyOptionalRefCell<T> {
pub struct PyOptionalRefCell<T> {
inner: OptionalRefCell<T>,
}