aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-12 16:21:14 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-01-12 16:57:48 +0100
commit48c1bf7d192cc5d2e423eb3036cc172297fc8dc3 (patch)
tree1bb6012a4432f9bd09ac5238919c7a5a942b052e /askama_derive/src
parent8a05c16271e0ee7d8017a46d8d3423027f8ae57c (diff)
downloadaskama-48c1bf7d192cc5d2e423eb3036cc172297fc8dc3.tar.gz
askama-48c1bf7d192cc5d2e423eb3036cc172297fc8dc3.tar.bz2
askama-48c1bf7d192cc5d2e423eb3036cc172297fc8dc3.zip
`&Option<T>` → `Option<&T>`
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 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<String, CompileError> {
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);
}