From 18d5bb7b810645b4bb0a8c669dfc41a0cd4933f9 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 12 Jan 2022 16:04:17 +0100 Subject: Rename "meta" in proc_macro parser --- askama_shared/src/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'askama_shared/src/input.rs') diff --git a/askama_shared/src/input.rs b/askama_shared/src/input.rs index 17410ed..a8ad025 100644 --- a/askama_shared/src/input.rs +++ b/askama_shared/src/input.rs @@ -30,7 +30,7 @@ impl TemplateInput<'_> { ) -> Result, CompileError> { // Check that an attribute called `template()` exists and that it is // the proper type (list). - let meta = ast + let template = ast .attrs .iter() .find_map(|attr| { @@ -41,7 +41,7 @@ impl TemplateInput<'_> { }) .unwrap_or(Err(CompileError::Static("no attribute 'template' found")))?; - let meta_list = match meta { + let template_args = match template { syn::Meta::List(inner) => inner, _ => return Err("attribute 'template' has incorrect type".into()), }; @@ -54,7 +54,7 @@ impl TemplateInput<'_> { let mut escaping = None; let mut ext = None; let mut syntax = None; - for item in meta_list.nested { + for item in template_args.nested { let pair = match item { syn::NestedMeta::Meta(syn::Meta::NameValue(ref pair)) => pair, _ => { -- cgit