Skip to content

Commit

Permalink
deny unknown fields on toml account config
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Jan 15, 2024
1 parent 7eba3a5 commit 2342a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{

/// Represents all existing kind of account config.
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "kebab-case")]
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
pub struct TomlAccountConfig {
pub default: Option<bool>,
pub email: String,
Expand Down

0 comments on commit 2342a83

Please sign in to comment.