mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
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:
parent
2642aad107
commit
f41c700a84
@ -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> {
|
||||
|
@ -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>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user