Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.88.0
1.89.0
2 changes: 1 addition & 1 deletion wallet/src/descriptor/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ impl<Ctx: ScriptContext + 'static> ExtractPolicy for Miniscript<DescriptorPublic
}
}

fn psbt_inputs_sat(psbt: &Psbt) -> impl Iterator<Item = PsbtInputSatisfier> {
fn psbt_inputs_sat(psbt: &Psbt) -> impl Iterator<Item = PsbtInputSatisfier<'_>> {
(0..psbt.inputs.len()).map(move |i| PsbtInputSatisfier::new(psbt, i))
}

Expand Down
6 changes: 3 additions & 3 deletions wallet/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ impl Wallet {
/// ```
///
/// [`Anchor`]: bdk_chain::Anchor
pub fn get_tx(&self, txid: Txid) -> Option<WalletTx> {
pub fn get_tx(&self, txid: Txid) -> Option<WalletTx<'_>> {
let graph = self.indexed_graph.graph();
graph
.list_canonical_txs(
Expand All @@ -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<Item = WalletTx> + '_ {
pub fn transactions<'a>(&'a self) -> impl Iterator<Item = WalletTx<'a>> + 'a {
let tx_graph = self.indexed_graph.graph();
let tx_index = &self.indexed_graph.index;
tx_graph
Expand Down Expand Up @@ -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<F>(&self, compare: F) -> Vec<WalletTx>
pub fn transactions_sort_by<F>(&self, compare: F) -> Vec<WalletTx<'_>>
where
F: FnMut(&WalletTx, &WalletTx) -> Ordering,
{
Expand Down
Loading