瀏覽代碼

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

Ian Goldberg 1 月之前
父節點
當前提交
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! {
             #[allow(non_snake_case)]
+            #[allow(unused_variables)]
             pub mod #proto_name {
                 use super::sigma_compiler;
                 use sigma_compiler::group::Group;