From d2e7a8532d05ec15faeb0e3ad11594649ac3b456 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 25 Oct 2022 06:23:45 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20respond=20with=20an=20`id`=20if?= =?UTF-8?q?=20none=20was=20specified=20in=20the=20WebSocket=20RPC=20query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rpc/res.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc/res.rs b/src/rpc/res.rs index 3befa1cc..73a39942 100644 --- a/src/rpc/res.rs +++ b/src/rpc/res.rs @@ -14,6 +14,7 @@ pub enum Output { #[derive(Serialize)] pub struct Response { + #[serde(skip_serializing_if = "Option::is_none")] id: Option, #[serde(flatten)] content: Content,