From 48c1bf7d192cc5d2e423eb3036cc172297fc8dc3 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 12 Jan 2022 16:21:14 +0100 Subject: `&Option` → `Option<&T>` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src') diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index b2379f3..4e2a3af 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -65,7 +65,7 @@ fn build_template(ast: &syn::DeriveInput) -> Result { eprintln!("{:?}", parsed[&input.path]); } - let code = generator::generate(&input, &contexts, &heritage, INTEGRATIONS)?; + let code = generator::generate(&input, &contexts, heritage.as_ref(), INTEGRATIONS)?; if input.print == Print::Code || input.print == Print::All { eprintln!("{}", code); } -- cgit