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

Commit 704f8f1

Browse files
committed
Apply suggestions from clippy 1.83
1 parent 4af1963 commit 704f8f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

askama_derive/src/generator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ impl MapChain<'_, Cow<'_, str>, LocalMeta> {
19901990
}
19911991
}
19921992

1993-
impl<'a, K: Eq + hash::Hash, V> Default for MapChain<'a, K, V> {
1993+
impl<K: Eq + hash::Hash, V> Default for MapChain<'_, K, V> {
19941994
fn default() -> Self {
19951995
Self {
19961996
parent: None,

askama_parser/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn skip_till<'a, O>(
279279
}
280280
}
281281

282-
fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'_> {
282+
fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'a> {
283283
move |i: &'a str| -> ParseResult<'a> {
284284
let (j, v) = identifier(i)?;
285285
if k == v {

testing/tests/methods.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct SelfMethodTemplate<'a> {
66
s: &'a str,
77
}
88

9-
impl<'a> SelfMethodTemplate<'a> {
9+
impl SelfMethodTemplate<'_> {
1010
fn get_s(&self) -> &str {
1111
self.s
1212
}
@@ -40,7 +40,7 @@ struct NestedSelfMethodTemplate<'a> {
4040
t: SelfMethodTemplate<'a>,
4141
}
4242

43-
impl<'a> NestedSelfMethodTemplate<'a> {
43+
impl NestedSelfMethodTemplate<'_> {
4444
fn get_s(&self) -> &str {
4545
"bar"
4646
}

0 commit comments

Comments
 (0)