Commit 5fd2496
committed
fix: use ClapSerde::Opt for config deserialization to respect defaults
When deserializing the TOML config file directly into AppConfig, serde's
#[serde(default)] attribute was using Rust's Default trait for bool (false)
instead of the #[default(true)] attribute which only applies to the Default
trait implementation generated by ClapSerde.
Fix by deserializing into <AppConfig as ClapSerde>::Opt first, then
converting via AppConfig::from() which properly applies the defaults.
Also add default_value to always-uv CLI argument for consistency.
Update soft-fido2 to 0.12.2 which includes the duplicate notification fix.1 parent 595f781 commit 5fd2496
3 files changed
+13
-12
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
423 | | - | |
| 424 | + | |
424 | 425 | | |
425 | | - | |
426 | | - | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
0 commit comments