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.
Ok(quote! {
#(#mod_attrs)*
#[allow(dead_code)]
pub mod #mod_name {
#(#orig_content)*
#(#inner_modules)*