Skip to content

Commit

Permalink
Merge pull request rust-lang#19009 from lnicola/dont-just-die
Browse files Browse the repository at this point in the history
minor: Rephrase comment
  • Loading branch information
lnicola authored Jan 23, 2025
2 parents 582af7e + 788acba commit 84d44d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lsp-server/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ pub struct Request {

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Response {
// JSON RPC allows this to be null if it was impossible
// to decode the request's id. Ignore this special case
// and just die horribly.
// JSON-RPC allows this to be null if we can't find or parse the
// request id. We fail deserialization in that case, so we just
// make this field mandatory.
pub id: RequestId,
#[serde(skip_serializing_if = "Option::is_none")]
pub result: Option<serde_json::Value>,
Expand Down

0 comments on commit 84d44d0

Please # to comment.