fix: enable partial defaults in config
All checks were successful
Nix Build / nix build (push) Successful in 25s
All checks were successful
Nix Build / nix build (push) Successful in 25s
This commit is contained in:
parent
3f06af22a3
commit
3f0dbf8347
1 changed files with 11 additions and 0 deletions
11
lib/main.rs
11
lib/main.rs
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue