diff --git a/tests/Cargo.toml b/tests/Cargo.toml index d7253e202..0e04640ff 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -12,8 +12,7 @@ path = "test.rs" [features] default = ["full"] -full = ["rune-modules/full"] -dynamic_fields = ["rune/dynamic_fields"] +full = ["rune-modules/full", "rune/dynamic_fields"] [dependencies] thiserror = "1.0.30" diff --git a/tests/tests/dynamic_fields.rs b/tests/tests/dynamic_fields.rs index 86f8c20f4..a1b9ea36b 100644 --- a/tests/tests/dynamic_fields.rs +++ b/tests/tests/dynamic_fields.rs @@ -97,7 +97,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -169,7 +169,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -242,7 +242,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -313,7 +313,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -408,7 +408,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -480,7 +480,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -553,7 +553,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully"); @@ -624,7 +624,7 @@ mod dynamic_fields_tests { context.install(&module).expect("Expect module"); let mut options = Options::default(); - options.dynamic_fields = true; + options.dynamic_fields(true); let mut vm = vm_with_options(&context, &mut sources, &mut diagnostics, &options).expect("program to compile successfully");