error[E0277]: the trait bound `jsonrpc_client::Error<DummyError>: From<DummyError>` is not satisfied
--> $DIR/client_error_needs_to_implement_from.rs:24:6
|
24 | impl SendRequest for InnerClient {
| ^^^^^^^^^^^ the trait `From<DummyError>` is not implemented for `jsonrpc_client::Error<DummyError>`
|
::: $WORKSPACE/lib/src/lib.rs
|
| Error<Self::Error>: From<Self::Error>,
| ----------------- required by this bound in `SendRequest`
|
= help: the following implementations were found:
<jsonrpc_client::Error<C> as From<JsonRpcError>>
<jsonrpc_client::Error<C> as From<serde_json::error::Error>>
error[E0277]: the trait bound `jsonrpc_client::Error<DummyError>: From<DummyError>` is not satisfied
--> $DIR/client_error_needs_to_implement_from.rs:35:1
|
5 | #[jsonrpc_client::api]
| ---------------------- required by this bound in `Math`
6 | pub trait Math {
| ---- required by a bound in this
...
35 | #[jsonrpc_client::implement(Math)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<DummyError>` is not implemented for `jsonrpc_client::Error<DummyError>`
|
= help: the following implementations were found:
<jsonrpc_client::Error<C> as From<JsonRpcError>>
<jsonrpc_client::Error<C> as From<serde_json::error::Error>>
= note: this error originates in the attribute macro `jsonrpc_client::implement` (in Nightly builds, run with -Z macro-backtrace for more info)