From eee2182ab90fdc22cd05da9417cbee17e4c67088 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sun, 9 Jul 2023 19:59:17 +0100 Subject: [PATCH] fix(ipc): command/response casing --- src/ipc/commands.rs | 2 +- src/ipc/responses.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc/commands.rs b/src/ipc/commands.rs index 698d991..747110c 100644 --- a/src/ipc/commands.rs +++ b/src/ipc/commands.rs @@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize}; use std::path::PathBuf; #[derive(Subcommand, Debug, Serialize, Deserialize)] -#[serde(tag = "type")] +#[serde(tag = "type", rename_all = "snake_case")] pub enum Command { /// Return "ok" Ping, diff --git a/src/ipc/responses.rs b/src/ipc/responses.rs index df5a802..f033669 100644 --- a/src/ipc/responses.rs +++ b/src/ipc/responses.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize)] -#[serde(tag = "type")] +#[serde(tag = "type", rename_all = "snake_case")] pub enum Response { Ok, OkValue { value: String },