Просмотр исходного кода

Don't warn if variables produced by the code generator end up unused

Ian Goldberg 1 месяц назад
Родитель
Сommit
b855630aff
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      sigma-compiler-core/src/codegen.rs

+ 1 - 0
sigma-compiler-core/src/codegen.rs

@@ -569,6 +569,7 @@ impl CodeGen {
         };
         };
         quote! {
         quote! {
             #[allow(non_snake_case)]
             #[allow(non_snake_case)]
+            #[allow(unused_variables)]
             pub mod #proto_name {
             pub mod #proto_name {
                 use super::sigma_compiler;
                 use super::sigma_compiler;
                 use sigma_compiler::group::Group;
                 use sigma_compiler::group::Group;