Commit 1af28ee
authored
validator: Avoid AccountsDbConfig::default() (#10806)
Using a default trait implementation can be convenient for cases like
tests where the config is inconsequential to the test. However, the
convenience makes it easy to miss things in production cases where the
consequences are greater.
Make the validator specify each field in AccountsDbConfig instead of
filling in the rest of the struct with ..AccountsDbConfig::default()1 parent af4edcd commit 1af28ee
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
683 | 684 | | |
684 | 685 | | |
685 | 686 | | |
| 687 | + | |
686 | 688 | | |
687 | 689 | | |
688 | 690 | | |
| |||
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
| 699 | + | |
697 | 700 | | |
| 701 | + | |
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| |||
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
706 | | - | |
| 710 | + | |
707 | 711 | | |
708 | 712 | | |
709 | 713 | | |
| |||
0 commit comments