File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ use crate::quiet_cmd;
66use crate :: toolchain:: { check_toolchain, Toolchain } ;
77
88/// Lint configuration loaded from contrib/rbmt.toml.
9- #[ derive( Debug , serde:: Deserialize ) ]
9+ #[ derive( Debug , serde:: Deserialize , Default ) ]
10+ #[ serde( default ) ]
1011struct Config {
1112 lint : LintConfig ,
1213}
1314
1415/// Lint-specific configuration.
15- #[ derive( Debug , serde:: Deserialize ) ]
16+ #[ derive( Debug , serde:: Deserialize , Default ) ]
17+ #[ serde( default ) ]
1618struct LintConfig {
1719 /// List of crate names that are allowed to have duplicate versions.
1820 allowed_duplicates : Vec < String > ,
Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ use std::path::Path;
88use xshell:: Shell ;
99
1010/// Test configuration loaded from contrib/rbmt.toml.
11- #[ derive( Debug , Deserialize ) ]
11+ #[ derive( Debug , Deserialize , Default ) ]
12+ #[ serde( default ) ]
1213struct Config {
1314 test : TestConfig ,
1415}
1516
1617/// Test-specific configuration.
17- #[ derive( Debug , Deserialize ) ]
18+ #[ derive( Debug , Deserialize , Default ) ]
19+ #[ serde( default ) ]
1820struct TestConfig {
1921 /// Examples to run with the format "name:feature1 feature2".
2022 ///
You can’t perform that action at this time.
0 commit comments