From 1e41436e8903317e66e49457f05ddf31db2dd76a Mon Sep 17 00:00:00 2001 From: Namekuji Date: Mon, 10 Jul 2023 03:23:25 -0400 Subject: [PATCH] fix config parser --- packages/backend/native-utils/migration/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/backend/native-utils/migration/src/main.rs b/packages/backend/native-utils/migration/src/main.rs index fb9920b67a..a7b649c51b 100644 --- a/packages/backend/native-utils/migration/src/main.rs +++ b/packages/backend/native-utils/migration/src/main.rs @@ -69,7 +69,7 @@ async fn main() { } #[derive(Debug, PartialEq, Deserialize)] -#[serde(rename = "camelCase")] +#[serde(rename_all = "camelCase")] pub struct Config { pub url: url::Url, pub db: DbConfig, @@ -78,7 +78,6 @@ pub struct Config { } #[derive(Debug, PartialEq, Deserialize)] -#[serde(rename = "camelCase")] pub struct DbConfig { pub host: String, pub port: u32, @@ -88,7 +87,6 @@ pub struct DbConfig { } #[derive(Debug, PartialEq, Deserialize)] -#[serde(rename = "camelCase")] pub struct RedisConfig { pub host: String, pub port: u32, @@ -102,7 +100,7 @@ pub struct RedisConfig { } #[derive(Debug, PartialEq, Deserialize)] -#[serde(rename = "camelCase")] +#[serde(rename_all = "camelCase")] pub struct TlsConfig { pub host: String, pub reject_unauthorized: bool,