Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mothsART committed Aug 24, 2024
1 parent f31cf9e commit ec1faf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/template/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl From<WhitespaceHandling> for Whitespace {
}
}

const LOOP_NAMES: &'static [&str] = &[
const LOOP_NAMES: &[&str] = &[
"autos",
"barecodes",
"filesystems",
Expand Down Expand Up @@ -201,7 +201,7 @@ impl<'a> Generator<'a> {
&mut self,
value: &str,
loop_block: &'a Loop<'_>,
args: &Vec<Expr>,
args: &[Expr],
) -> Result<usize, ParsedError> {
if LOOP_NAMES.contains(&value) && !args.is_empty() {
if let askama_parser::Expr::NumLit(val) = args[0] {
Expand Down

0 comments on commit ec1faf2

Please sign in to comment.