Remove docsrs attributes

Somehow when we started using `doc_auto_cfg` we forgot to remove a bunch
of docsrs attributes.
This commit is contained in:
Tobin C. Harding 2023-07-14 14:59:11 +10:00
parent a7fe0f5695
commit 71c0043127
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
3 changed files with 4 additions and 8 deletions

View File

@ -65,7 +65,6 @@ pub struct ExtendedPrivKey {
crate::serde_utils::serde_string_impl!(ExtendedPrivKey, "a BIP-32 extended private key"); crate::serde_utils::serde_string_impl!(ExtendedPrivKey, "a BIP-32 extended private key");
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "std"))))]
impl fmt::Debug for ExtendedPrivKey { impl fmt::Debug for ExtendedPrivKey {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("ExtendedPrivKey") f.debug_struct("ExtendedPrivKey")

View File

@ -135,7 +135,6 @@ macro_rules! serde_impl(
/// Does an "empty" serde implementation for the configuration without serde feature. /// Does an "empty" serde implementation for the configuration without serde feature.
#[macro_export] #[macro_export]
#[cfg(not(feature = "serde"))] #[cfg(not(feature = "serde"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "serde"))))]
macro_rules! serde_impl( macro_rules! serde_impl(
($t:ident, $len:expr $(, $gen:ident: $gent:ident)*) => () ($t:ident, $len:expr $(, $gen:ident: $gent:ident)*) => ()
); );

View File

@ -4,7 +4,7 @@
#[doc(hidden)] #[doc(hidden)]
#[macro_export] #[macro_export]
macro_rules! impl_try_from_stringly { macro_rules! impl_try_from_stringly {
($from:ty, $to:ty, $error:ty, $func:expr $(, $attr:meta)?) => { ($from:ty, $to:ty, $error:ty, $func:expr) => {
$(#[$attr])? $(#[$attr])?
impl core::convert::TryFrom<$from> for $to { impl core::convert::TryFrom<$from> for $to {
type Error = $error; type Error = $error;
@ -44,11 +44,11 @@ macro_rules! impl_parse {
impl_try_from_stringly!(&str); impl_try_from_stringly!(&str);
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
impl_try_from_stringly!(alloc::string::String, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc"))); impl_try_from_stringly!(alloc::string::String, $type, $error, $func);
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
impl_try_from_stringly!(alloc::borrow::Cow<'_, str>, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc"))); impl_try_from_stringly!(alloc::borrow::Cow<'_, str>, $type, $error, $func);
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
impl_try_from_stringly!(alloc::boxed::Box<str>, $type, $error, $func, cfg_attr(docsrs, doc(feature = "alloc"))); impl_try_from_stringly!(alloc::boxed::Box<str>, $type, $error, $func);
} }
} }
@ -63,7 +63,6 @@ macro_rules! impl_parse_and_serde {
// We don't use `serde_string_impl` because we want to avoid allocating input. // We don't use `serde_string_impl` because we want to avoid allocating input.
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
impl<'de> $crate::serde::Deserialize<'de> for $type { impl<'de> $crate::serde::Deserialize<'de> for $type {
fn deserialize<D>(deserializer: D) -> Result<$name, D::Error> fn deserialize<D>(deserializer: D) -> Result<$name, D::Error>
where where
@ -96,7 +95,6 @@ macro_rules! impl_parse_and_serde {
} }
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
impl $crate::serde::Serialize for $name { impl $crate::serde::Serialize for $name {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where where