Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 8bb3de0

Browse files
committed
Stop eliding lifetimes in paths
1 parent 83b03cd commit 8bb3de0

File tree

15 files changed

+140
-105
lines changed

15 files changed

+140
-105
lines changed

askama/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
//! provided by Askama.
6161
6262
#![allow(unused_imports)]
63+
#![deny(elided_lifetimes_in_paths)]
64+
6365
#[macro_use]
6466
extern crate askama_derive;
6567
pub use askama_shared as shared;

askama_actix/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(elided_lifetimes_in_paths)]
2+
13
pub use askama::*;
24
use bytes::BytesMut;
35

askama_derive/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extern crate proc_macro;
1+
#![deny(elided_lifetimes_in_paths)]
22

33
use askama_shared::heritage::{Context, Heritage};
44
use askama_shared::input::{Print, Source, TemplateInput};
@@ -71,7 +71,7 @@ fn build_template(ast: &syn::DeriveInput) -> Result<String, CompileError> {
7171
}
7272

7373
fn find_used_templates(
74-
input: &TemplateInput,
74+
input: &TemplateInput<'_>,
7575
map: &mut HashMap<PathBuf, String>,
7676
source: String,
7777
) -> Result<(), CompileError> {

askama_escape/benches/all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn functions(c: &mut Criterion) {
1111
c.bench_function("Escaping", escaping);
1212
}
1313

14-
fn escaping(b: &mut criterion::Bencher) {
14+
fn escaping(b: &mut criterion::Bencher<'_>) {
1515
let string_long = r#"
1616
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat tellus sit
1717
amet ornare fermentum. Etiam nec erat ante. In at metus a orci mollis scelerisque.

askama_escape/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![no_std]
2+
#![deny(elided_lifetimes_in_paths)]
23

34
#[cfg(test)]
45
extern crate std;

askama_gotham/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(elided_lifetimes_in_paths)]
2+
13
pub use askama::*;
24

35
pub use gotham::handler::IntoResponse;

askama_iron/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(elided_lifetimes_in_paths)]
2+
13
pub use askama::*;
24

35
pub use iron::{headers::ContentType, modifier::Modifier, Response};

askama_rocket/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(elided_lifetimes_in_paths)]
2+
13
use std::io::Cursor;
24

35
pub use askama::*;

0 commit comments

Comments
 (0)