From b22751b20c95e34b82653de5e4f79b1f8294a4c6 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 7 Dec 2018 09:02:24 +0100 Subject: [PATCH] getopts.rs: fix test --- src/getopts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getopts.rs b/src/getopts.rs index e94aa504..fbc522b6 100644 --- a/src/getopts.rs +++ b/src/getopts.rs @@ -193,7 +193,7 @@ fn test_argument_paramenter() { let args = vec!["-enable", "local"]; let string_args = args.iter().map(|s| s.to_string()).collect(); - let res = parse_arguments(&string_args, &vec!["storage".to_string()], &schema); + let res = parse_arguments(&string_args, &vec!["storage"], &schema); assert!(res.is_ok()); if let Ok((options, rest)) = res { assert!(options["enable"] == true);