fix(chain)!: rm weird From impl

And signature of `example_cli::KeychainChangeSet` is changed.
This commit is contained in:
志宇
2023-09-14 20:14:42 +08:00
parent d43ae0231f
commit 1ff806c67f
2 changed files with 18 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ use alloc::vec::Vec;
use bitcoin::{OutPoint, Transaction, TxOut};
use crate::{
keychain, local_chain,
keychain,
tx_graph::{self, TxGraph},
Anchor, Append,
};
@@ -225,12 +225,6 @@ impl<A, K> From<keychain::ChangeSet<K>> for ChangeSet<A, keychain::ChangeSet<K>>
}
}
impl<A, IA> From<ChangeSet<A, IA>> for (local_chain::ChangeSet, ChangeSet<A, IA>) {
fn from(indexed_changeset: ChangeSet<A, IA>) -> Self {
(local_chain::ChangeSet::default(), indexed_changeset)
}
}
/// Utilities for indexing transaction data.
///
/// Types which implement this trait can be used to construct an [`IndexedTxGraph`].