From 973876b035805ddc14e39165c643dcf417fbc6ca Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jul 2023 14:23:35 -0700 Subject: do not overload the tag "kind" task_info kind overwrites the containing clientproto kind --- src/protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/protocol.rs b/src/protocol.rs index 829dde1..78c7303 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -14,7 +14,7 @@ pub enum ClientProto { } #[derive(Serialize, Deserialize, Debug)] -#[serde(tag = "kind")] +#[serde(tag = "command_info")] #[serde(rename_all = "snake_case")] pub enum CommandInfo { Started { command: Vec, cwd: Option, id: u32 }, @@ -22,7 +22,7 @@ pub enum CommandInfo { } #[derive(Serialize, Deserialize, Debug)] -#[serde(tag = "kind")] +#[serde(tag = "task_info")] #[serde(rename_all = "snake_case")] pub enum TaskInfo { Finished { status: String }, -- cgit v1.1