From ebe7417a889a58cfd4f94bb5142121dd3cc2afd4 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Wed, 14 Sep 2022 12:07:20 +0200 Subject: [PATCH] Fix symlink_arrow test intercepting cli args --- src/flags/symlink_arrow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flags/symlink_arrow.rs b/src/flags/symlink_arrow.rs index 41d3a2b3a..b42379ada 100644 --- a/src/flags/symlink_arrow.rs +++ b/src/flags/symlink_arrow.rs @@ -62,9 +62,10 @@ mod test { #[test] fn test_symlink_arrow_from_args_none() { use clap::App; + let empty_args: [String; 0] = []; assert_eq!( None, - SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches()) + SymlinkArrow::from_arg_matches(&App::new("lsd").get_matches_from(empty_args)) ); }