Implement constants via calling the constant.

This commit is contained in:
Stephen Chung
2020-09-17 11:56:10 +08:00
committed by J Henry Waugh
parent c07c4561eb
commit 92be487e80
4 changed files with 23 additions and 63 deletions

View File

@@ -282,7 +282,6 @@ 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)*