This commit is contained in:
Ayaz Hafiz 2023-03-31 18:04:32 -05:00
parent 906f2349b8
commit 32a59b7e72
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 7 additions and 5 deletions

View file

@ -129,8 +129,10 @@ impl TestCase {
}
fn parse_infer_options(data: &str) -> Result<InferOptions, Failed> {
let mut infer_opts = InferOptions::default();
infer_opts.no_promote = true;
let mut infer_opts = InferOptions {
no_promote: true,
..Default::default()
};
let found_infer_opts = RE_OPT_INFER.captures_iter(data);
for infer_opt in found_infer_opts {