diff --git a/bitcoin/contrib/test.sh b/bitcoin/contrib/test.sh index e80bd522..68563062 100755 --- a/bitcoin/contrib/test.sh +++ b/bitcoin/contrib/test.sh @@ -81,7 +81,7 @@ cargo run --example taproot-psbt --features=bitcoinconsensus # Build the docs if told to (this only works with the nightly toolchain) if [ "$DO_DOCS" = true ]; then - RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links + RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --all-features -- -D rustdoc::broken-intra-doc-links -D warnings || exit 1 fi # Fuzz if told to diff --git a/bitcoin/src/amount.rs b/bitcoin/src/amount.rs index 06868876..5b76bfec 100644 --- a/bitcoin/src/amount.rs +++ b/bitcoin/src/amount.rs @@ -1348,7 +1348,7 @@ pub mod serde { } pub mod opt { - //! Serialize and deserialize [Option] as JSON numbers denominated in BTC. + //! Serialize and deserialize `Option` as JSON numbers denominated in BTC. //! Use with `#[serde(default, with = "amount::serde::as_btc::opt")]`. use core::fmt; diff --git a/bitcoin/src/blockdata/witness.rs b/bitcoin/src/blockdata/witness.rs index 8a416c86..f676e787 100644 --- a/bitcoin/src/blockdata/witness.rs +++ b/bitcoin/src/blockdata/witness.rs @@ -29,7 +29,7 @@ use crate::util::taproot::TAPROOT_ANNEX_PREFIX; /// #[derive(Clone, Default, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)] pub struct Witness { - /// Contains the witness Vec> serialization without the initial varint indicating the + /// Contains the witness `Vec>` serialization without the initial varint indicating the /// number of elements (which is stored in `witness_elements`) content: Vec, diff --git a/bitcoin/src/psbt/map/input.rs b/bitcoin/src/psbt/map/input.rs index 25e56f69..42d43a96 100644 --- a/bitcoin/src/psbt/map/input.rs +++ b/bitcoin/src/psbt/map/input.rs @@ -113,7 +113,7 @@ pub struct Input { pub hash256_preimages: BTreeMap>, /// Serialized schnorr signature with sighash type for key spend. pub tap_key_sig: Option, - /// Map of | with signature. + /// Map of `|` with signature. #[cfg_attr(feature = "serde", serde(with = "crate::serde_utils::btreemap_as_seq"))] pub tap_script_sigs: BTreeMap<(XOnlyPublicKey, TapLeafHash), SchnorrSig>, /// Map of Control blocks to Script version pair.