Unverified Commit ca0be0b8 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

Update core/src/server/helpers.rs

parent c5d46eea
Pipeline #200589 canceled with stages
in 4 minutes and 13 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 }
}
}
......
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