Skip to content

Commit

Permalink
Fix a new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Jan 2, 2024
1 parent 59fbdc5 commit 22c7d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 22c7d50

Please sign in to comment.