fix: enable partial defaults in config
All checks were successful
Nix Build / nix build (push) Successful in 25s

This commit is contained in:
atagen 2025-07-05 19:30:34 +10:00
parent 3f06af22a3
commit 3f0dbf8347

View file

@ -44,10 +44,21 @@ impl Default for TagState {
}
}
fn default_true() -> bool {
true
}
fn default_3() -> u8 {
3
}
#[derive(Deserialize)]
pub struct Config {
#[serde(default = "default_3")]
pub prepopulate: u8,
#[serde(default = "default_true")]
pub strict: bool,
#[serde(default = "default_true")]
pub activation_on_fill: bool,
}