aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <rene.kijewski@fu-berlin.de>2023-02-24 18:23:25 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-02-24 18:58:35 +0100
commitc9613ff6029ee58dc3f94c3dd955b905ed7fc9ef (patch)
tree8cc2448c5eb2a5eab54c006b24f205253e34e12b /askama_derive/src/generator.rs
parent70c5784a9ebc1e2f9e97d5358c7b686111ea18f4 (diff)
downloadaskama-c9613ff6029ee58dc3f94c3dd955b905ed7fc9ef.tar.gz
askama-c9613ff6029ee58dc3f94c3dd955b905ed7fc9ef.tar.bz2
askama-c9613ff6029ee58dc3f94c3dd955b905ed7fc9ef.zip
Fix typos
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r--askama_derive/src/generator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 762f356..204098f 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -205,7 +205,7 @@ fn find_used_templates(
let dependency_path = (path.clone(), extends.clone());
if dependency_graph.contains(&dependency_path) {
return Err(format!(
- "cyclic dependecy in graph {:#?}",
+ "cyclic dependency in graph {:#?}",
dependency_graph
.iter()
.map(|e| format!("{:#?} --> {:#?}", e.0, e.1))
@@ -1211,7 +1211,7 @@ impl<'a> Generator<'a> {
};
let id = match expr_cache.entry(expression.clone()) {
- Entry::Occupied(e) if s.is_cachable() => *e.get(),
+ Entry::Occupied(e) if s.is_cacheable() => *e.get(),
e => {
let id = self.named;
self.named += 1;