Skip to content

Commit d87a08f

Browse files
committed
Remove doc_auto_cfg attribute
This attribute has been removed from the nightly toolchain. It breaks the nightly build in CI and also if/when we release it breaks the docs build on crates.io which uses a nightly toolchain. In `rust-bitcoin` we elected to just remove it instead of replacing it as suggested by many in the wider eccosystem because we figured they broke us once better not to rely on them again.
1 parent b7fab3a commit d87a08f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@
131131
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
132132
// Experimental features we need.
133133
#![cfg_attr(bench, feature(test))]
134-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
135134
// Coding conventions
136135
#![deny(missing_docs)]
137136
#![allow(clippy::suspicious_arithmetic_impl)] // this lint is literally always wrong
@@ -495,6 +494,12 @@ impl From<UncheckedHrpstringError> for DecodeError {
495494
fn from(e: UncheckedHrpstringError) -> Self { Self::Parse(e) }
496495
}
497496

497+
#[cfg(feature = "alloc")]
498+
impl From<ChecksumError> for DecodeError {
499+
#[inline]
500+
fn from(e: ChecksumError) -> Self { Self::Checksum(e) }
501+
}
502+
498503
/// An error while encoding a bech32 string.
499504
#[derive(Debug, Clone, PartialEq, Eq)]
500505
#[non_exhaustive]

0 commit comments

Comments
 (0)