aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-06-14 11:21:10 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-06-14 11:47:13 +0200
commit25eae265a2d14a33a1723bfa0c5dc7a7f6b5a6ab (patch)
treead0268e6fc443b8d2396855ba5f128705e3a506f /askama_derive/src
parentc0e75554d2e7b1f51c26f5af304a7fb64e9a69e8 (diff)
downloadaskama-25eae265a2d14a33a1723bfa0c5dc7a7f6b5a6ab.tar.gz
askama-25eae265a2d14a33a1723bfa0c5dc7a7f6b5a6ab.tar.bz2
askama-25eae265a2d14a33a1723bfa0c5dc7a7f6b5a6ab.zip
Fix needless borrowing
Diffstat (limited to '')
-rw-r--r--askama_derive/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs
index 101b861..1b6c02a 100644
--- a/askama_derive/src/lib.rs
+++ b/askama_derive/src/lib.rs
@@ -49,7 +49,7 @@ fn build_template(ast: &syn::DeriveInput) -> Result<String, CompileError> {
let mut contexts = HashMap::new();
for (path, nodes) in &parsed {
- contexts.insert(*path, Context::new(&input.config, path, nodes)?);
+ contexts.insert(*path, Context::new(input.config, path, nodes)?);
}
let ctx = &contexts[&input.path];