Skip to content

Commit

Permalink
Apply suggestions from clippy 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Nov 29, 2024
1 parent 4af1963 commit 704f8f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion askama_derive/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ impl MapChain<'_, Cow<'_, str>, LocalMeta> {
}
}

impl<'a, K: Eq + hash::Hash, V> Default for MapChain<'a, K, V> {
impl<K: Eq + hash::Hash, V> Default for MapChain<'_, K, V> {
fn default() -> Self {
Self {
parent: None,
Expand Down
2 changes: 1 addition & 1 deletion askama_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions testing/tests/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct SelfMethodTemplate<'a> {
s: &'a str,
}

impl<'a> SelfMethodTemplate<'a> {
impl SelfMethodTemplate<'_> {
fn get_s(&self) -> &str {
self.s
}
Expand Down Expand Up @@ -40,7 +40,7 @@ struct NestedSelfMethodTemplate<'a> {
t: SelfMethodTemplate<'a>,
}

impl<'a> NestedSelfMethodTemplate<'a> {
impl NestedSelfMethodTemplate<'_> {
fn get_s(&self) -> &str {
"bar"
}
Expand Down

0 comments on commit 704f8f1

Please sign in to comment.