From 625e4df49a9ac494c1cf6107cd9903ae8fb79f2f Mon Sep 17 00:00:00 2001 From: larpon <768942+larpon@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:21:03 +0200 Subject: [PATCH] flag, tests: inline a few `const`s (#22174) --- vlib/flag/v_flag_parser_style_flags_test.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vlib/flag/v_flag_parser_style_flags_test.v b/vlib/flag/v_flag_parser_style_flags_test.v index 96fa3226db..c1f85e8b33 100644 --- a/vlib/flag/v_flag_parser_style_flags_test.v +++ b/vlib/flag/v_flag_parser_style_flags_test.v @@ -7,8 +7,6 @@ const exe_and_v_flag_parser_args_with_tail = ['/path/to/exe', '--version', '-p', '--test', 'abc', '--done', '-p', 'two', '--live', 'run', '/path/to', 'platforms;android-21'] const error_wrong_assignment_flags = ['--o=error'] -const exe_and_v_flag_parser_help_short_arg = ['/path/to/exe', '-h'] - struct Prefs { version bool @[short: v] is_live bool @[long: live] @@ -95,7 +93,7 @@ fn test_long_v_style_with_tail_no_exe() { } fn test_long_v_style_with_exe_and_short_alias() { - prefs, _ := flag.to_struct[Prefs](exe_and_v_flag_parser_help_short_arg, + prefs, _ := flag.to_struct[Prefs](['/path/to/exe', '-h'], skip: 1 style: .v_flag_parser )!