From: Steve Myers Date: Mon, 16 Dec 2024 01:25:05 +0000 (-0600) Subject: ci(clippy): fix new default warn empty_line_after_doc_comments for rust 1.83 X-Git-Tag: core-0.4.1~2^2~3 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.EncoderStringWriter.html?a=commitdiff_plain;h=1d03db9ab37bfe623e16bc85f712d4a1db4c51ed;p=bdk ci(clippy): fix new default warn empty_line_after_doc_comments for rust 1.83 https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments https://github.com/rust-lang/rust-clippy/pull/13091 --- diff --git a/crates/wallet/examples/compiler.rs b/crates/wallet/examples/compiler.rs index d0922fa4..bf43f3de 100644 --- a/crates/wallet/examples/compiler.rs +++ b/crates/wallet/examples/compiler.rs @@ -30,7 +30,6 @@ use bdk_wallet::{KeychainKind, Wallet}; /// can be derived from the policy. /// /// 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 diff --git a/crates/wallet/examples/policy.rs b/crates/wallet/examples/policy.rs index e64d47b5..2b55a2eb 100644 --- a/crates/wallet/examples/policy.rs +++ b/crates/wallet/examples/policy.rs @@ -25,7 +25,6 @@ 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(); diff --git a/crates/wallet/src/keys/mod.rs b/crates/wallet/src/keys/mod.rs index d9c241ff..f12bcb94 100644 --- a/crates/wallet/src/keys/mod.rs +++ b/crates/wallet/src/keys/mod.rs @@ -982,7 +982,7 @@ impl fmt::Display for KeyError { impl std::error::Error for KeyError {} #[cfg(test)] -pub mod test { +mod test { use bitcoin::bip32; use super::*;