mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #19009 from lnicola/dont-just-die
minor: Rephrase comment
This commit is contained in:
commit
84d44d0a57
@ -80,9 +80,9 @@ pub struct Request {
|
|||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
pub struct Response {
|
pub struct Response {
|
||||||
// JSON RPC allows this to be null if it was impossible
|
// JSON-RPC allows this to be null if we can't find or parse the
|
||||||
// to decode the request's id. Ignore this special case
|
// request id. We fail deserialization in that case, so we just
|
||||||
// and just die horribly.
|
// make this field mandatory.
|
||||||
pub id: RequestId,
|
pub id: RequestId,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub result: Option<serde_json::Value>,
|
pub result: Option<serde_json::Value>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user