Skip to content

Commit 8f4b57e

Browse files
committed
Merge rust-bitcoin#1940: Remove docsrs attributes
71c0043 Remove docsrs attributes (Tobin C. Harding) Pull request description: Somehow when we started using `doc_auto_cfg` we forgot to remove a bunch of docsrs attributes. ACKs for top commit: apoelstra: ACK 71c0043 sanket1729: utACK 71c0043 Tree-SHA512: 16ff8eec0f6cd392d496f8f07cc0773bbda28f7c71022ae6b5e2c47a98d40c94a9169c60c0d8fa5a819f07910593d65a47b69bdc748d64cda0aac3323e9599a6
2 parents 39c708c + 71c0043 commit 8f4b57e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

bitcoin/src/bip32.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub struct ExtendedPrivKey {
6565
crate::serde_utils::serde_string_impl!(ExtendedPrivKey, "a BIP-32 extended private key");
6666

6767
#[cfg(not(feature = "std"))]
68-
#[cfg_attr(docsrs, doc(cfg(not(feature = "std"))))]
6968
impl fmt::Debug for ExtendedPrivKey {
7069
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7170
f.debug_struct("ExtendedPrivKey")

hashes/src/serde_macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ macro_rules! serde_impl(
135135
/// Does an "empty" serde implementation for the configuration without serde feature.
136136
#[macro_export]
137137
#[cfg(not(feature = "serde"))]
138-
#[cfg_attr(docsrs, doc(cfg(not(feature = "serde"))))]
139138
macro_rules! serde_impl(
140139
($t:ident, $len:expr $(, $gen:ident: $gent:ident)*) => ()
141140
);

internals/src/parse.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#[doc(hidden)]
55
#[macro_export]
66
macro_rules! impl_try_from_stringly {
7-
($from:ty, $to:ty, $error:ty, $func:expr $(, $attr:meta)?) => {
7+
($from:ty, $to:ty, $error:ty, $func:expr) => {
88
$(#[$attr])?
99
impl core::convert::TryFrom<$from> for $to {
1010
type Error = $error;
@@ -44,11 +44,11 @@ macro_rules! impl_parse {
4444
impl_try_from_stringly!(&str);
4545

4646
#[cfg(feature = "alloc")]
47-
impl_try_from_stringly!(alloc::string::String, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc")));
47+
impl_try_from_stringly!(alloc::string::String, $type, $error, $func);
4848
#[cfg(feature = "alloc")]
49-
impl_try_from_stringly!(alloc::borrow::Cow<'_, str>, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc")));
49+
impl_try_from_stringly!(alloc::borrow::Cow<'_, str>, $type, $error, $func);
5050
#[cfg(feature = "alloc")]
51-
impl_try_from_stringly!(alloc::boxed::Box<str>, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc")));
51+
impl_try_from_stringly!(alloc::boxed::Box<str>, $type, $error, $func);
5252
}
5353
}
5454

@@ -63,7 +63,6 @@ macro_rules! impl_parse_and_serde {
6363

6464
// We don't use `serde_string_impl` because we want to avoid allocating input.
6565
#[cfg(feature = "serde")]
66-
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
6766
impl<'de> $crate::serde::Deserialize<'de> for $type {
6867
fn deserialize<D>(deserializer: D) -> Result<$name, D::Error>
6968
where
@@ -96,7 +95,6 @@ macro_rules! impl_parse_and_serde {
9695
}
9796

9897
#[cfg(feature = "serde")]
99-
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
10098
impl $crate::serde::Serialize for $name {
10199
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
102100
where

0 commit comments

Comments
 (0)