Skip to content

Commit

Permalink
fix: allow unused imports in marine-test-env (#111)
Browse files Browse the repository at this point in the history
allow unused imports in marine-test-env
  • Loading branch information
ValeryAntopol authored Dec 20, 2023
1 parent eedc005 commit 05321fe
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)*
}
Expand Down Expand Up @@ -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)*
}
Expand Down Expand Up @@ -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)*
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fn test() {
#[allow(unused)]
#[allow(non_snake_case)]
#[allow(unused_imports)]
pub mod marine_test_env {
pub mod greeting {
#[derive(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 05321fe

Please sign in to comment.