diff --git a/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs b/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs index de8ad63..7a6b40c 100644 --- a/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs +++ b/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs @@ -166,6 +166,7 @@ fn generate_test_glue_code_single_service( // definitions for wasm modules specified in config #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { #(#module_definitions)* } @@ -202,6 +203,7 @@ fn generate_test_glue_code_multiple_services( let marine_test_env = quote! { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { #(#service_definitions)* } @@ -230,6 +232,7 @@ pub(super) fn generate_marine_test_env_for_build_script( let marine_test_env = quote! { #[allow(dead_code)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { #(#service_definitions)* } diff --git a/crates/marine-test-macro-impl/tests/generation_tests/empty_func/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/empty_func/expanded.rs index b262588..87f963b 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/empty_func/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/empty_func/expanded.rs @@ -2,6 +2,7 @@ fn empty_string() { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod greeting { #[derive( diff --git a/crates/marine-test-macro-impl/tests/generation_tests/mounted_binary/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/mounted_binary/expanded.rs index 8de91c9..6592db8 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/mounted_binary/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/mounted_binary/expanded.rs @@ -2,6 +2,7 @@ fn test() { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod greeting { #[derive( diff --git a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-empty_mod/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-empty_mod/expanded.rs index 7cae447..e725745 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-empty_mod/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-empty_mod/expanded.rs @@ -2,6 +2,7 @@ pub mod tests { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod empty_mod { pub mod modules { diff --git a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-multiple/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-multiple/expanded.rs index ddaef19..d2cf948 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-multiple/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-multiple/expanded.rs @@ -2,6 +2,7 @@ fn test() { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod empty_func { pub mod modules { diff --git a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-single/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-single/expanded.rs index bb172e7..fe95035 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/multi-service-single/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/multi-service-single/expanded.rs @@ -2,6 +2,7 @@ fn empty_test() { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod empty_func { pub mod modules { diff --git a/crates/marine-test-macro-impl/tests/generation_tests/multiple_modules/expanded.rs b/crates/marine-test-macro-impl/tests/generation_tests/multiple_modules/expanded.rs index 5fcfb5d..48882e4 100644 --- a/crates/marine-test-macro-impl/tests/generation_tests/multiple_modules/expanded.rs +++ b/crates/marine-test-macro-impl/tests/generation_tests/multiple_modules/expanded.rs @@ -2,6 +2,7 @@ fn empty_string() { #[allow(unused)] #[allow(non_snake_case)] + #[allow(unused_imports)] pub mod marine_test_env { pub mod greeting { #[derive(