Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit afd5117

Browse files
committed
Remove feature gating on "std"
This crate does not have a "std" feature, it does not currently support `no-std`. Remove incorrect feature gating.
1 parent c8eb658 commit afd5117

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

src/json/v17/blockchain/.#mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/json/v17/blockchain/convert.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ impl fmt::Display for GetBlockVerbosityOneError {
107107
}
108108
}
109109

110-
#[cfg(feature = "std")]
111-
impl std::error::Error for model::GetBlockVerbosityOneError {
110+
impl std::error::Error for GetBlockVerbosityOneError {
112111
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
113112
use GetBlockVerbosityOneError::*;
114113

@@ -177,8 +176,7 @@ impl fmt::Display for GetTxOutError {
177176
}
178177
}
179178

180-
#[cfg(feature = "std")]
181-
impl std::error::Error for model::GetTxOutError {
179+
impl std::error::Error for GetTxOutError {
182180
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
183181
use GetTxOutError::*;
184182

src/json/v17/network/convert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ impl fmt::Display for GetNetworkInfoError {
9292
}
9393
}
9494

95-
#[cfg(feature = "std")]
9695
impl std::error::Error for GetNetworkInfoError {
9796
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
9897
use GetNetworkInfoError::*;

src/json/v22/blockchain/convert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ impl fmt::Display for GetBlockchainInfoError {
7474
}
7575
}
7676

77-
#[cfg(feature = "std")]
7877
impl std::error::Error for GetBlockchainInfoError {
7978
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
8079
use GetBlockchainInfoError::*;

src/json/v22/network/convert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ impl fmt::Display for GetNetworkInfoError {
9292
}
9393
}
9494

95-
#[cfg(feature = "std")]
9695
impl std::error::Error for GetNetworkInfoError {
9796
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
9897
use GetNetworkInfoError::*;

0 commit comments

Comments
 (0)