From 25eae265a2d14a33a1723bfa0c5dc7a7f6b5a6ab Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 14 Jun 2021 11:21:10 +0200 Subject: Fix needless borrowing --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive') 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 { 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]; -- cgit