diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-04 11:44:27 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-14 10:13:10 +0100 |
commit | 328acca6cd459a1cc26e66235adcac19c564bd46 (patch) | |
tree | b1cbc06b80e1bb77ce54d5a06f0a6dc1317e94ba /plugins/tedge_apt_plugin | |
parent | 413c3e560b50fa799925237605d7c17713cfe5c2 (diff) |
Remove unnecessary push to Vec
This fixes clippy lint `clippy::vec_init_then_push`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'plugins/tedge_apt_plugin')
-rw-r--r-- | plugins/tedge_apt_plugin/src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/tedge_apt_plugin/src/main.rs b/plugins/tedge_apt_plugin/src/main.rs index 44a0e0c8..1a0aaa2c 100644 --- a/plugins/tedge_apt_plugin/src/main.rs +++ b/plugins/tedge_apt_plugin/src/main.rs @@ -120,10 +120,7 @@ fn run(operation: PluginOp) -> Result<ExitStatus, InternalError> { // Maintaining this metadata list to keep the debian package symlinks until the installation is complete, // which will get cleaned up once it goes out of scope after this block let mut metadata_vec = Vec::new(); - let mut args: Vec<String> = Vec::new(); - args.push("install".into()); - args.push("--quiet".into()); - args.push("--yes".into()); + let mut args: Vec<String> = vec!["install".into(), "--quiet".into(), "--yes".into()]; for update_module in updates { match update_module.action { UpdateAction::Install => { |