From ef1c124395ebc47e0165296e7f38da106ba76efc Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Thu, 8 Jul 2021 12:54:42 +0200 Subject: [PATCH] Fix kebab-case naming in config --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8269385..472f6c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,7 @@ struct Options { database_path: PathBuf, } -#[derive(Debug, Deserialize)] -#[serde(default)] +#[serde(default, rename_all = "kebab-case")] struct Config { database_path: PathBuf, }