diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 811ae6a8..6d2283f9 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1990,7 +1990,7 @@ impl MapChain<'_, Cow<'_, str>, LocalMeta> { } } -impl<'a, K: Eq + hash::Hash, V> Default for MapChain<'a, K, V> { +impl Default for MapChain<'_, K, V> { fn default() -> Self { Self { parent: None, diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs index c5e4bb44..09218aa2 100644 --- a/askama_parser/src/lib.rs +++ b/askama_parser/src/lib.rs @@ -279,7 +279,7 @@ fn skip_till<'a, O>( } } -fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'_> { +fn keyword<'a>(k: &'a str) -> impl FnMut(&'a str) -> ParseResult<'a> { move |i: &'a str| -> ParseResult<'a> { let (j, v) = identifier(i)?; if k == v { diff --git a/testing/tests/methods.rs b/testing/tests/methods.rs index 09f91e6b..b9c8942c 100644 --- a/testing/tests/methods.rs +++ b/testing/tests/methods.rs @@ -6,7 +6,7 @@ struct SelfMethodTemplate<'a> { s: &'a str, } -impl<'a> SelfMethodTemplate<'a> { +impl SelfMethodTemplate<'_> { fn get_s(&self) -> &str { self.s } @@ -40,7 +40,7 @@ struct NestedSelfMethodTemplate<'a> { t: SelfMethodTemplate<'a>, } -impl<'a> NestedSelfMethodTemplate<'a> { +impl NestedSelfMethodTemplate<'_> { fn get_s(&self) -> &str { "bar" }