From 46386337b0448eaffeeac860fca19bed71bfdaaa Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Thu, 19 Sep 2024 15:58:29 +0100 Subject: [PATCH] Ignore doc compile error With the stricter doc tests required to pick up unused imports etc. the `compile_fail` tag also creates an Error. Changed `compile_fail` to `ignore` to remove the Error. --- bitcoin/src/crypto/sighash.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index 0e17f7b32..ea95dc5ae 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -1127,7 +1127,8 @@ impl> SighashCache { /// /// # Examples /// - /// ```compile_fail + /// ```ignore + /// # // Example is an incomplete section of code that does not compile by itself /// let mut sighasher = SighashCache::new(&mut tx_to_sign); /// let sighash = sighasher.p2wpkh_signature_hash(input_index, &utxo.script_pubkey, amount, sighash_type)?; ///