Skip to content

Commit 910a5b5

Browse files
committed
fix: reimplement From for keychain::ChangeSet
1 parent 72fde6d commit 910a5b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/persist/src/changeset.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ impl<K: Ord, A: Anchor> Append for CombinedChangeSet<K, A> {
5252
}
5353
}
5454

55+
impl<K, A> From<keychain::ChangeSet<K>> for CombinedChangeSet<K, A> {
56+
fn from(keychain_changeset: keychain::ChangeSet<K>) -> Self {
57+
Self {
58+
indexed_tx_graph: keychain_changeset.into(),
59+
..Default::default()
60+
}
61+
}
62+
}
63+
5564
impl<K, A> From<local_chain::ChangeSet> for CombinedChangeSet<K, A> {
5665
fn from(chain: local_chain::ChangeSet) -> Self {
5766
Self {

0 commit comments

Comments
 (0)