From 22c7d50730d9faeb3b8e7ad6b10bf0c92c3def06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Tue, 2 Jan 2024 18:47:13 +0100 Subject: [PATCH] Fix a new lint --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 1f778dc..fe0aa11 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -181,7 +181,7 @@ where .index_of("ignore-case") .map(|idx| (Casing::Insensitive, idx)); - let mut casing_args = vec![smart_case_pos, case_sensitive_pos, ignore_case_pos]; + let mut casing_args = [smart_case_pos, case_sensitive_pos, ignore_case_pos]; casing_args.sort_by_key(|arg| arg.as_ref().map(|(_, idx)| *idx)); let casing = match casing_args.last().unwrap() {