From b32b9447e089709b66f24d5700750f0aa6b8d6e1 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Thu, 15 Aug 2024 11:50:20 -0300 Subject: [PATCH] chore(examples): allow `clippy::print_stdout` in examples --- crates/wallet/examples/compiler.rs | 1 + crates/wallet/examples/mnemonic_to_descriptors.rs | 1 + crates/wallet/examples/policy.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/crates/wallet/examples/compiler.rs b/crates/wallet/examples/compiler.rs index 72bed012e..d0922fa4e 100644 --- a/crates/wallet/examples/compiler.rs +++ b/crates/wallet/examples/compiler.rs @@ -31,6 +31,7 @@ use bdk_wallet::{KeychainKind, Wallet}; /// /// This example demonstrates the interaction between a bdk wallet and miniscript policy. +#[allow(clippy::print_stdout)] fn main() -> Result<(), Box> { // We start with a miniscript policy string let policy_str = "or( diff --git a/crates/wallet/examples/mnemonic_to_descriptors.rs b/crates/wallet/examples/mnemonic_to_descriptors.rs index 76c53cf29..19154c2d7 100644 --- a/crates/wallet/examples/mnemonic_to_descriptors.rs +++ b/crates/wallet/examples/mnemonic_to_descriptors.rs @@ -19,6 +19,7 @@ use std::str::FromStr; /// This example demonstrates how to generate a mnemonic phrase /// using BDK and use that to generate a descriptor string. +#[allow(clippy::print_stdout)] fn main() -> Result<(), anyhow::Error> { let secp = Secp256k1::new(); diff --git a/crates/wallet/examples/policy.rs b/crates/wallet/examples/policy.rs index 6e0c82690..e64d47b53 100644 --- a/crates/wallet/examples/policy.rs +++ b/crates/wallet/examples/policy.rs @@ -26,6 +26,7 @@ use bdk_wallet::signer::SignersContainer; /// This example demos a Policy output for a 2of2 multisig between between 2 parties, where the wallet holds /// one of the Extend Private key. +#[allow(clippy::print_stdout)] fn main() -> Result<(), Box> { let secp = bitcoin::secp256k1::Secp256k1::new();