diff --git a/rust-version b/rust-version index 59be5921..636ea711 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -1.88.0 +1.89.0 diff --git a/wallet/src/descriptor/policy.rs b/wallet/src/descriptor/policy.rs index eb9014cb..100348f6 100644 --- a/wallet/src/descriptor/policy.rs +++ b/wallet/src/descriptor/policy.rs @@ -1054,7 +1054,7 @@ impl ExtractPolicy for Miniscript impl Iterator { +fn psbt_inputs_sat(psbt: &Psbt) -> impl Iterator> { (0..psbt.inputs.len()).map(move |i| PsbtInputSatisfier::new(psbt, i)) } diff --git a/wallet/src/wallet/mod.rs b/wallet/src/wallet/mod.rs index c1aab082..e1f957cd 100644 --- a/wallet/src/wallet/mod.rs +++ b/wallet/src/wallet/mod.rs @@ -1165,7 +1165,7 @@ impl Wallet { /// ``` /// /// [`Anchor`]: bdk_chain::Anchor - pub fn get_tx(&self, txid: Txid) -> Option { + pub fn get_tx(&self, txid: Txid) -> Option> { let graph = self.indexed_graph.graph(); graph .list_canonical_txs( @@ -1187,7 +1187,7 @@ impl Wallet { /// /// To iterate over all canonical transactions, including those that are irrelevant, use /// [`TxGraph::list_canonical_txs`]. - pub fn transactions(&self) -> impl Iterator + '_ { + pub fn transactions<'a>(&'a self) -> impl Iterator> + 'a { let tx_graph = self.indexed_graph.graph(); let tx_index = &self.indexed_graph.index; tx_graph @@ -1215,7 +1215,7 @@ impl Wallet { /// wallet.transactions_sort_by(|tx1, tx2| tx2.chain_position.cmp(&tx1.chain_position)); /// # Ok::<(), anyhow::Error>(()) /// ``` - pub fn transactions_sort_by(&self, compare: F) -> Vec + pub fn transactions_sort_by(&self, compare: F) -> Vec> where F: FnMut(&WalletTx, &WalletTx) -> Ordering, {