From d57ce9c0508db7ca31ff6b6d48a28d26a7c72e73 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 13 Sep 2020 22:36:40 +0800 Subject: [PATCH] Remove warning about unused constants in modules. --- codegen/src/module.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/src/module.rs b/codegen/src/module.rs index 85b1278c..4b829693 100644 --- a/codegen/src/module.rs +++ b/codegen/src/module.rs @@ -282,6 +282,7 @@ impl Module { // Regenerate the module with the new content added. Ok(quote! { #(#mod_attrs)* + #[allow(dead_code)] pub mod #mod_name { #(#orig_content)* #(#inner_modules)*