diff --git a/bitcoin/src/address.rs b/bitcoin/src/address.rs index beca6b11..8752231a 100644 --- a/bitcoin/src/address.rs +++ b/bitcoin/src/address.rs @@ -126,7 +126,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/amount.rs b/bitcoin/src/amount.rs index 2606a708..5f3b285b 100644 --- a/bitcoin/src/amount.rs +++ b/bitcoin/src/amount.rs @@ -181,7 +181,6 @@ impl fmt::Display for ParseAmountError { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for ParseAmountError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::ParseAmountError::*; @@ -1160,7 +1159,6 @@ mod private { } #[cfg(feature = "serde")] -#[cfg_attr(docsrs, doc(cfg(feature = "serde")))] pub mod serde { // methods are implementation of a standardized serde-specific signature #![allow(missing_docs)] diff --git a/bitcoin/src/base58.rs b/bitcoin/src/base58.rs index 7be8e313..99321c10 100644 --- a/bitcoin/src/base58.rs +++ b/bitcoin/src/base58.rs @@ -255,7 +255,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/bip152.rs b/bitcoin/src/bip152.rs index f29cae9a..66625fe8 100644 --- a/bitcoin/src/bip152.rs +++ b/bitcoin/src/bip152.rs @@ -38,7 +38,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/bip158.rs b/bitcoin/src/bip158.rs index a7fc6360..9bc22c25 100644 --- a/bitcoin/src/bip158.rs +++ b/bitcoin/src/bip158.rs @@ -79,7 +79,6 @@ impl Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/bip32.rs b/bitcoin/src/bip32.rs index a3d85257..faa70d61 100644 --- a/bitcoin/src/bip32.rs +++ b/bitcoin/src/bip32.rs @@ -211,7 +211,6 @@ impl FromStr for ChildNumber { } #[cfg(feature = "serde")] -#[cfg_attr(docsrs, doc(cfg(feature = "serde")))] impl<'de> serde::Deserialize<'de> for ChildNumber { fn deserialize(deserializer: D) -> Result where @@ -222,7 +221,6 @@ impl<'de> serde::Deserialize<'de> for ChildNumber { } #[cfg(feature = "serde")] -#[cfg_attr(docsrs, doc(cfg(feature = "serde")))] impl serde::Serialize for ChildNumber { fn serialize(&self, serializer: S) -> Result where @@ -482,7 +480,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs index 0788cbe9..5641625f 100644 --- a/bitcoin/src/blockdata/block.rs +++ b/bitcoin/src/blockdata/block.rs @@ -366,7 +366,6 @@ impl fmt::Display for Bip34Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Bip34Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Bip34Error::*; diff --git a/bitcoin/src/blockdata/locktime/absolute.rs b/bitcoin/src/blockdata/locktime/absolute.rs index 53546093..c6869c10 100644 --- a/bitcoin/src/blockdata/locktime/absolute.rs +++ b/bitcoin/src/blockdata/locktime/absolute.rs @@ -569,7 +569,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; @@ -621,7 +620,6 @@ impl fmt::Display for ConversionError { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for ConversionError {} /// Describes the two types of locking, lock-by-blockheight and lock-by-blocktime. @@ -664,7 +662,6 @@ impl fmt::Display for OperationError { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for OperationError {} #[cfg(test)] diff --git a/bitcoin/src/blockdata/locktime/relative.rs b/bitcoin/src/blockdata/locktime/relative.rs index 01450c14..08d95672 100644 --- a/bitcoin/src/blockdata/locktime/relative.rs +++ b/bitcoin/src/blockdata/locktime/relative.rs @@ -325,7 +325,6 @@ impl fmt::Display for Error { } #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use self::Error::*; diff --git a/bitcoin/src/blockdata/opcodes.rs b/bitcoin/src/blockdata/opcodes.rs index 41b6a4bc..d976283f 100644 --- a/bitcoin/src/blockdata/opcodes.rs +++ b/bitcoin/src/blockdata/opcodes.rs @@ -422,7 +422,6 @@ impl From for All { debug_from_display!(All); #[cfg(feature = "serde")] -#[cfg_attr(docsrs, doc(cfg(feature = "serde")))] impl serde::Serialize for All { fn serialize(&self, serializer: S) -> Result where diff --git a/bitcoin/src/blockdata/script/borrowed.rs b/bitcoin/src/blockdata/script/borrowed.rs index c07de825..b9807138 100644 --- a/bitcoin/src/blockdata/script/borrowed.rs +++ b/bitcoin/src/blockdata/script/borrowed.rs @@ -368,7 +368,6 @@ impl Script { /// * `amount` - The amount this script guards. /// * `spending_tx` - The transaction that attempts to spend the output holding this script. #[cfg(feature = "bitcoinconsensus")] - #[cfg_attr(docsrs, doc(cfg(feature = "bitcoinconsensus")))] pub fn verify( &self, index: usize, @@ -386,7 +385,6 @@ impl Script { /// * `spending_tx` - The transaction that attempts to spend the output holding this script. /// * `flags` - Verification flags, see [`bitcoinconsensus::VERIFY_ALL`] and similar. #[cfg(feature = "bitcoinconsensus")] - #[cfg_attr(docsrs, doc(cfg(feature = "bitcoinconsensus")))] pub fn verify_with_flags>( &self, index: usize, @@ -502,5 +500,4 @@ delegate_index!( RangeToInclusive ); #[cfg(rust_v_1_53)] -#[cfg_attr(docsrs, doc(cfg(rust_v_1_53)))] delegate_index!((Bound, Bound)); diff --git a/bitcoin/src/blockdata/script/mod.rs b/bitcoin/src/blockdata/script/mod.rs index c8fa7cba..52bc3b81 100644 --- a/bitcoin/src/blockdata/script/mod.rs +++ b/bitcoin/src/blockdata/script/mod.rs @@ -273,7 +273,6 @@ impl<'a> From<&'a Script> for Cow<'a, Script> { /// Note: This will fail to compile on old Rust for targets that don't support atomics #[cfg(any(not(rust_v_1_60), target_has_atomic = "ptr"))] -#[cfg_attr(docsrs, doc(cfg(target_has_atomic = "ptr")))] impl<'a> From<&'a Script> for Arc