1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(ipc): command/response casing

This commit is contained in:
Jake Stanger 2023-07-09 19:59:17 +01:00
parent abf490b04e
commit eee2182ab9
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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 },