From 8bb3de0a3e586da6b719abedcfcc58e901eddc12 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 1 Jul 2021 15:52:33 +0200 Subject: Stop eliding lifetimes in paths --- askama_derive/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_derive/src/lib.rs') diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 1b6c02a..f97fa90 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -1,4 +1,4 @@ -extern crate proc_macro; +#![deny(elided_lifetimes_in_paths)] use askama_shared::heritage::{Context, Heritage}; use askama_shared::input::{Print, Source, TemplateInput}; @@ -71,7 +71,7 @@ fn build_template(ast: &syn::DeriveInput) -> Result { } fn find_used_templates( - input: &TemplateInput, + input: &TemplateInput<'_>, map: &mut HashMap, source: String, ) -> Result<(), CompileError> { -- cgit