Skip to content

Commit

Permalink
persistence: export MemContract, add default generics
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 1, 2024
1 parent 3263dfc commit 738d1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/persistence/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ impl MemContractState {
}
}

pub struct MemContract<M: Borrow<MemContractState>> {
pub struct MemContract<M: Borrow<MemContractState> = MemContractState> {
filter: HashMap<XWitnessId, WitnessOrd>,
unfiltered: M,
}
Expand Down
3 changes: 1 addition & 2 deletions src/persistence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ pub use index::{
Index, IndexError, IndexInconsistency, IndexProvider, IndexReadError, IndexReadProvider,
IndexWriteError, IndexWriteProvider,
};
pub(crate) use memory::MemContract;
pub use memory::{MemContractState, MemGlobalState, MemIndex, MemStash, MemState};
pub use memory::{MemContract, MemContractState, MemGlobalState, MemIndex, MemStash, MemState};
pub use stash::{
ProviderError as StashProviderError, SchemaIfaces, Stash, StashDataError, StashError,
StashInconsistency, StashProvider, StashReadProvider, StashWriteProvider,
Expand Down

0 comments on commit 738d1b3

Please sign in to comment.