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_escape/benches/all.rs | 2 +- askama_escape/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'askama_escape') diff --git a/askama_escape/benches/all.rs b/askama_escape/benches/all.rs index a98f2d7..e0ef11f 100644 --- a/askama_escape/benches/all.rs +++ b/askama_escape/benches/all.rs @@ -11,7 +11,7 @@ fn functions(c: &mut Criterion) { c.bench_function("Escaping", escaping); } -fn escaping(b: &mut criterion::Bencher) { +fn escaping(b: &mut criterion::Bencher<'_>) { let string_long = r#" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat tellus sit amet ornare fermentum. Etiam nec erat ante. In at metus a orci mollis scelerisque. diff --git a/askama_escape/src/lib.rs b/askama_escape/src/lib.rs index 577b793..4643390 100644 --- a/askama_escape/src/lib.rs +++ b/askama_escape/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![deny(elided_lifetimes_in_paths)] #[cfg(test)] extern crate std; -- cgit