Skip to content

Commit 3d9e95c

Browse files
committed
Make config::Config struct non-exhaustive
1 parent 1e8306b commit 3d9e95c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub struct Config {
88
pub run_command: Vec<String>,
99
pub run_args: Option<Vec<String>>,
1010
pub test_timeout: u32,
11+
non_exhaustive: (),
1112
}
1213

1314
pub(crate) fn read_config(manifest_path: &Path) -> Result<Config, ErrorMessage> {
@@ -102,6 +103,7 @@ impl Into<Config> for ConfigBuilder {
102103
]),
103104
run_args: self.run_args,
104105
test_timeout: self.test_timeout.unwrap_or(60 * 5),
106+
non_exhaustive: (),
105107
}
106108
}
107109
}

0 commit comments

Comments
 (0)