Remove warning about unused constants in modules.

This commit is contained in:
Stephen Chung 2020-09-13 22:36:40 +08:00 committed by J Henry Waugh
parent 6126f0cb10
commit d57ce9c050

View File

@ -282,6 +282,7 @@ impl Module {
// Regenerate the module with the new content added. // Regenerate the module with the new content added.
Ok(quote! { Ok(quote! {
#(#mod_attrs)* #(#mod_attrs)*
#[allow(dead_code)]
pub mod #mod_name { pub mod #mod_name {
#(#orig_content)* #(#orig_content)*
#(#inner_modules)* #(#inner_modules)*