fix: allow unused imports in marine-test-env (#111)

allow unused imports in marine-test-env
This commit is contained in:
Valery Antopol 2023-12-20 16:50:14 +04:00 committed by GitHub
parent eedc0050f9
commit 05321fe7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 0 deletions

View File

@ -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)*
}

View File

@ -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(

View File

@ -2,6 +2,7 @@
fn test() {
#[allow(unused)]
#[allow(non_snake_case)]
#[allow(unused_imports)]
pub mod marine_test_env {
pub mod greeting {
#[derive(

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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(