aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-12 16:04:17 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-01-13 15:10:09 +0100
commit18d5bb7b810645b4bb0a8c669dfc41a0cd4933f9 (patch)
tree5b97ce032f668a3bd13f072d3d14a24e040f26db
parent292d88e7f2baf7b4ffcba807e56a58607ec9ff2f (diff)
downloadaskama-18d5bb7b810645b4bb0a8c669dfc41a0cd4933f9.tar.gz
askama-18d5bb7b810645b4bb0a8c669dfc41a0cd4933f9.tar.bz2
askama-18d5bb7b810645b4bb0a8c669dfc41a0cd4933f9.zip
Rename "meta" in proc_macro parser
Diffstat (limited to '')
-rw-r--r--askama_shared/src/input.rs6
1 files changed, 3 insertions, 3 deletions
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<TemplateInput<'n>, 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,
_ => {