Skip to content

Commit

Permalink
Fix MSRV issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewliebenow committed Oct 19, 2024
1 parent d2bdd37 commit 9e14156
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/by-util/test_stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,17 @@ fn ignore_end_of_options_and_after() {
fn f_file_option() {
for st in ["-F", "--file"] {
for bo in [false, true] {
let ar: [&str; 3];
let arr: [&str; 2];

let (args, regex): (&[&str], &'static Regex) = if bo {
(&[st, DEV_TTY, "-a"], get_print_dash_a_first_line_regex())
ar = [st, DEV_TTY, "-a"];

(&ar, get_print_dash_a_first_line_regex())
} else {
(&[st, DEV_TTY], get_print_first_line_regex())
arr = [st, DEV_TTY];

(&arr, get_print_first_line_regex())
};

run_and_check_print_should_succeed(args, regex);
Expand Down

0 comments on commit 9e14156

Please sign in to comment.