Remove doc(hidden) from error conversion functions

Give people access to the error type conversion docs, its no harm and it
may be useful when the compiler does not give enough information.
This commit is contained in:
Tobin C. Harding 2023-05-30 15:54:40 +10:00
parent 7bf0a106dd
commit 042dcaa4b7
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
6 changed files with 0 additions and 9 deletions

View File

@ -148,12 +148,10 @@ impl std::error::Error for Error {
} }
} }
#[doc(hidden)]
impl From<base58::Error> for Error { impl From<base58::Error> for Error {
fn from(e: base58::Error) -> Error { Error::Base58(e) } fn from(e: base58::Error) -> Error { Error::Base58(e) }
} }
#[doc(hidden)]
impl From<bech32::Error> for Error { impl From<bech32::Error> for Error {
fn from(e: bech32::Error) -> Error { Error::Bech32(e) } fn from(e: bech32::Error) -> Error { Error::Bech32(e) }
} }

View File

@ -779,7 +779,6 @@ impl From<UintError> for Error {
} }
#[cfg(feature = "bitcoinconsensus")] #[cfg(feature = "bitcoinconsensus")]
#[doc(hidden)]
impl From<bitcoinconsensus::Error> for Error { impl From<bitcoinconsensus::Error> for Error {
fn from(err: bitcoinconsensus::Error) -> Error { Error::BitcoinConsensus(err) } fn from(err: bitcoinconsensus::Error) -> Error { Error::BitcoinConsensus(err) }
} }

View File

@ -93,7 +93,6 @@ impl std::error::Error for Error {
} }
} }
#[doc(hidden)]
impl From<io::Error> for Error { impl From<io::Error> for Error {
fn from(error: io::Error) -> Self { Error::Io(error) } fn from(error: io::Error) -> Self { Error::Io(error) }
} }

View File

@ -65,17 +65,14 @@ impl std::error::Error for Error {
} }
} }
#[doc(hidden)]
impl From<base58::Error> for Error { impl From<base58::Error> for Error {
fn from(e: base58::Error) -> Error { Error::Base58(e) } fn from(e: base58::Error) -> Error { Error::Base58(e) }
} }
#[doc(hidden)]
impl From<secp256k1::Error> for Error { impl From<secp256k1::Error> for Error {
fn from(e: secp256k1::Error) -> Error { Error::Secp256k1(e) } fn from(e: secp256k1::Error) -> Error { Error::Secp256k1(e) }
} }
#[doc(hidden)]
impl From<hex::Error> for Error { impl From<hex::Error> for Error {
fn from(e: hex::Error) -> Self { Error::Hex(e) } fn from(e: hex::Error) -> Self { Error::Hex(e) }
} }

View File

@ -203,7 +203,6 @@ impl std::error::Error for Error {
} }
} }
#[doc(hidden)]
impl From<hashes::FromSliceError> for Error { impl From<hashes::FromSliceError> for Error {
fn from(e: hashes::FromSliceError) -> Error { Error::HashParse(e) } fn from(e: hashes::FromSliceError) -> Error { Error::HashParse(e) }
} }

View File

@ -68,7 +68,6 @@ mod message_signing {
} }
} }
#[doc(hidden)]
impl From<secp256k1::Error> for MessageSignatureError { impl From<secp256k1::Error> for MessageSignatureError {
fn from(e: secp256k1::Error) -> MessageSignatureError { fn from(e: secp256k1::Error) -> MessageSignatureError {
MessageSignatureError::InvalidEncoding(e) MessageSignatureError::InvalidEncoding(e)