diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-22 08:23:42 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 14:50:54 +0200 |
commit | 5c9cc5387a08eea6c167e9ebd74e5ee68eebbac8 (patch) | |
tree | 28feb74ef51a15526a473f8059c71e707e5963ff /plugins/tedge_apt_plugin | |
parent | 9e2e58976df61dbba79d3e24ecb0c07bfe6969e1 (diff) |
Fix clippy in tedge_apt_plugin: Remove let-unit-value
This patch fixes `clippy::let_unit_value`.
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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/tedge_apt_plugin/src/main.rs b/plugins/tedge_apt_plugin/src/main.rs index ed221d39..e427498b 100644 --- a/plugins/tedge_apt_plugin/src/main.rs +++ b/plugins/tedge_apt_plugin/src/main.rs @@ -173,15 +173,13 @@ fn get_installer( (None, Some(file_path)) => { let mut package = PackageMetadata::try_new(file_path)?; - let () = - package.validate_package(&[&format!("Package: {}", &module), "Debian package"])?; - + package.validate_package(&[&format!("Package: {}", &module), "Debian package"])?; Ok((format!("{}", package.file_path().display()), Some(package))) } (Some(version), Some(file_path)) => { let mut package = PackageMetadata::try_new(file_path)?; - let () = package.validate_package(&[ + package.validate_package(&[ &format!("Version: {}", &version), &format!("Package: {}", &module), "Debian package", |