diff --git a/src/config.rs b/src/config.rs index 7fd85fe..bed6020 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,8 @@ use std::collections::HashMap; #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct Config { pub files: Walk, @@ -53,7 +54,8 @@ impl Config { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct Walk { pub extend_exclude: Vec, @@ -142,7 +144,8 @@ impl Walk { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(transparent)] pub struct TypeEngineConfig { pub patterns: std::collections::HashMap, @@ -232,7 +235,8 @@ impl TypeEngineConfig { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct GlobEngineConfig { pub extend_glob: Vec, @@ -248,7 +252,8 @@ impl GlobEngineConfig { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct EngineConfig { /// Check binary files. @@ -321,7 +326,8 @@ impl EngineConfig { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct TokenizerConfig { /// Allow unicode characters in identifiers (and not just ASCII) @@ -368,7 +374,8 @@ impl TokenizerConfig { } #[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] -#[serde(deny_unknown_fields, default)] +#[serde(deny_unknown_fields)] +#[serde(default)] #[serde(rename_all = "kebab-case")] pub struct DictConfig { pub locale: Option,