From c07c4561eb8cd74e6ce28ad4fb948b2264ed2b28 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 17 Sep 2020 11:40:31 +0800 Subject: [PATCH] Remove unused_variables. --- codegen/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 4426f173..5da8e1b4 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -154,8 +154,7 @@ pub fn exported_module(module_path: proc_macro::TokenStream) -> proc_macro::Toke #[proc_macro] pub fn combine_with_exported_module(args: proc_macro::TokenStream) -> proc_macro::TokenStream { - #[allow(unused_variables)] - let (module_expr, export_name, module_path) = match crate::register::parse_register_macro(args) + let (module_expr, _export_name, module_path) = match crate::register::parse_register_macro(args) { Ok(triple) => triple, Err(e) => return e.to_compile_error().into(),