Skip to content

Commit

Permalink
ok clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sathwikmatsa committed Nov 10, 2021
1 parent ab12565 commit 7315538
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,7 @@ where
let mut vars: HashMap<String, String> = 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<Box<str>> = Vec::new();
arg_strings.push(name.to_owned().into_boxed_str());
let mut arg_strings: Vec<Box<str>> = vec![name.to_owned().into_boxed_str()];
for arg in args {
arg_strings.push(
arg.as_ref()
Expand Down

0 comments on commit 7315538

Please sign in to comment.