aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 281c3b0..a7f52ca 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -826,7 +826,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
}
Target::Tuple(targets) => targets
.iter()
- .any(|name| self.is_shadowing_variable(&Target::Name(name))),
+ .any(|target| self.is_shadowing_variable(target)),
}
}
@@ -1523,8 +1523,8 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
}
Target::Tuple(targets) => {
buf.write("(");
- for name in targets {
- self.visit_target(buf, initialized, &Target::Name(name));
+ for target in targets {
+ self.visit_target(buf, initialized, target);
buf.write(",");
}
buf.write(")");