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)) ); }