From ec1faf2cbebe2590f7bc8f32cf90bf5785707b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferry=20J=C3=A9r=C3=A9mie?= Date: Sat, 24 Aug 2024 10:48:29 +0200 Subject: [PATCH] cargo clippy --- src/template/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template/generator.rs b/src/template/generator.rs index 3aef834..0efcb77 100644 --- a/src/template/generator.rs +++ b/src/template/generator.rs @@ -83,7 +83,7 @@ impl From for Whitespace { } } -const LOOP_NAMES: &'static [&str] = &[ +const LOOP_NAMES: &[&str] = &[ "autos", "barecodes", "filesystems", @@ -201,7 +201,7 @@ impl<'a> Generator<'a> { &mut self, value: &str, loop_block: &'a Loop<'_>, - args: &Vec, + args: &[Expr], ) -> Result { if LOOP_NAMES.contains(&value) && !args.is_empty() { if let askama_parser::Expr::NumLit(val) = args[0] {