Skip to content

Commit 24ec31b

Browse files
committed
1 parent 4aa8fba commit 24ec31b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/policy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use bdk::wallet::signer::SignersContainer;
2727
///
2828
/// This example demos a Policy output for a 2of2 multisig between between 2 parties, where the wallet holds
2929
/// one of the Extend Private key.
30-
3130
fn main() -> Result<(), Box<dyn Error>> {
3231
env_logger::init_from_env(
3332
env_logger::Env::default().filter_or(env_logger::DEFAULT_FILTER_ENV, "info"),

src/descriptor/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap) {
134134
network: Network,
135135
}
136136

137-
impl<'s, 'd> miniscript::Translator<DescriptorPublicKey, String, DescriptorError>
138-
for Translator<'s, 'd>
139-
{
137+
impl miniscript::Translator<DescriptorPublicKey, String, DescriptorError> for Translator<'_, '_> {
140138
fn pk(&mut self, pk: &DescriptorPublicKey) -> Result<String, DescriptorError> {
141139
let secp = &self.secp;
142140

src/wallet/tx_builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl std::default::Default for FeePolicy {
167167
}
168168
}
169169

170-
impl<'a, Cs: Clone, Ctx, D> Clone for TxBuilder<'a, D, Cs, Ctx> {
170+
impl<Cs: Clone, Ctx, D> Clone for TxBuilder<'_, D, Cs, Ctx> {
171171
fn clone(&self) -> Self {
172172
TxBuilder {
173173
wallet: self.wallet,
@@ -584,7 +584,7 @@ impl<'a, D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>, Ctx: TxBuilderContext>
584584
}
585585
}
586586

587-
impl<'a, D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>> TxBuilder<'a, D, Cs, CreateTx> {
587+
impl<D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>> TxBuilder<'_, D, Cs, CreateTx> {
588588
/// Replace the recipients already added with a new list
589589
pub fn set_recipients(&mut self, recipients: Vec<(ScriptBuf, u64)>) -> &mut Self {
590590
self.params.recipients = recipients;
@@ -658,7 +658,7 @@ impl<'a, D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>> TxBuilder<'a, D, Cs, C
658658
}
659659

660660
// methods supported only by bump_fee
661-
impl<'a, D: BatchDatabase> TxBuilder<'a, D, DefaultCoinSelectionAlgorithm, BumpFee> {
661+
impl<D: BatchDatabase> TxBuilder<'_, D, DefaultCoinSelectionAlgorithm, BumpFee> {
662662
/// Explicitly tells the wallet that it is allowed to reduce the amount of the output matching this
663663
/// `script_pubkey` in order to bump the transaction fee. Without specifying this the wallet
664664
/// will attempt to find a change output to shrink instead.

0 commit comments

Comments
 (0)