We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f7dc0 commit b782f23Copy full SHA for b782f23
core/src/response.rs
@@ -30,9 +30,9 @@ where
30
match response {
31
Output::Success(success) => {
32
trace!("Received json result: {}", success.result);
33
- serde_json::from_value::<R>(success.result)
+ serde_json::from_value(success.result)
34
.chain_err(|| ErrorKind::ResponseError("Not valid for target type"))
35
}
36
- Output::Failure(failure) => Err(ErrorKind::JsonRpcError(failure.error).into()),
+ Output::Failure(failure) => bail!(ErrorKind::JsonRpcError(failure.error)),
37
38
0 commit comments