Refuse unknown fields in config

This commit is contained in:
Daniel Karzel 2021-07-01 17:53:42 +10:00
parent bbd6991346
commit 7c2c1319bc
No known key found for this signature in database
GPG key ID: 30C3FC2E438ADB6E

View file

@ -95,6 +95,7 @@ const DEFAULT_MAX_BUY_AMOUNT: f64 = 0.02f64;
const DEFAULT_SPREAD: f64 = 0.02f64;
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq)]
#[serde(deny_unknown_fields)]
pub struct Config {
pub data: Data,
pub network: Network,