Remove unused_variables.

This commit is contained in:
Stephen Chung 2020-09-17 11:40:31 +08:00 committed by J Henry Waugh
parent 5e4ba9c016
commit c07c4561eb

View File

@ -154,8 +154,7 @@ pub fn exported_module(module_path: proc_macro::TokenStream) -> proc_macro::Toke
#[proc_macro] #[proc_macro]
pub fn combine_with_exported_module(args: proc_macro::TokenStream) -> proc_macro::TokenStream { 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, Ok(triple) => triple,
Err(e) => return e.to_compile_error().into(), Err(e) => return e.to_compile_error().into(),