*Add impl From<()> for HttpClientError
This commit is contained in:
parent
a103982ff0
commit
c831bd5c35
|
@ -91,6 +91,15 @@ impl From<Result<String, ()>> for ClientError {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl From<()> for HttpClientError {
|
||||
fn from(_: ()) -> Self {
|
||||
HttpClientError::JsonRpcError(JsonRpcError {
|
||||
code: 0,
|
||||
message: "".to_string(),
|
||||
data: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
|
||||
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
|
||||
|
|
Loading…
Reference in New Issue