]> Untitled Git - bdk/commitdiff
chore(examples): allow `clippy::print_stdout` in examples
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Thu, 15 Aug 2024 14:50:20 +0000 (11:50 -0300)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Thu, 15 Aug 2024 15:00:15 +0000 (12:00 -0300)
crates/wallet/examples/compiler.rs
crates/wallet/examples/mnemonic_to_descriptors.rs
crates/wallet/examples/policy.rs

index 72bed012e7c0dbb8d4f7aca79c87b5fa37037999..d0922fa4ee57c64ded11b8841a5d7d0a69b43329 100644 (file)
@@ -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<dyn Error>> {
     // We start with a miniscript policy string
     let policy_str = "or(
index 76c53cf292343742195a7562a783829ef4881ccc..19154c2d73f10584f1c0483d329365d92ee681cf 100644 (file)
@@ -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();
 
index 6e0c826905a9cacee9791b3fe6de7956dc8b2358..e64d47b53eb72538dd714301a2adf94e8dcc9649 100644 (file)
@@ -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<dyn Error>> {
     let secp = bitcoin::secp256k1::Secp256k1::new();