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:
parent
7bf0a106dd
commit
042dcaa4b7
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue