Commit 3e885043 authored by Niklas Adolfsson's avatar Niklas Adolfsson
Browse files

Merge remote-tracking branch 'origin/na-middleware' into na-middleware

parents 0b0d9877 79138ed1
Pipeline #200737 passed with stages
in 5 minutes and 20 seconds
......@@ -253,7 +253,7 @@ impl MethodResponse {
/// Create a `MethodResponse` from an error.
pub fn error<'a>(id: Id, err: impl Into<ErrorObject<'a>>) -> Self {
let result = serde_json::to_string(&ErrorResponse::borrowed(err.into(), id)).unwrap();
let result = serde_json::to_string(&ErrorResponse::borrowed(err.into(), id)).expect("valid JSON; qed");
Self { result, success: false }
}
}
......
......@@ -23,7 +23,6 @@ tracing-futures = "0.2.5"
tokio-stream = "0.1.7"
http = "0.2.7"
[dev-dependencies]
anyhow = "1"
jsonrpsee-test-utils = { path = "../test-utils" }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment