diff --git a/tests/mock/clitools.rs b/tests/mock/clitools.rs index dfa3ad62391..311e85b6a27 100644 --- a/tests/mock/clitools.rs +++ b/tests/mock/clitools.rs @@ -637,8 +637,7 @@ where let mut vars: HashMap = HashMap::default(); self::env(config, &mut vars); vars.extend(env.iter().map(|(k, v)| (k.to_string(), v.to_string()))); - let mut arg_strings: Vec> = Vec::new(); - arg_strings.push(name.to_owned().into_boxed_str()); + let mut arg_strings: Vec> = vec![name.to_owned().into_boxed_str()]; for arg in args { arg_strings.push( arg.as_ref()