summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-07-22 08:23:42 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-18 14:50:54 +0200
commit5c9cc5387a08eea6c167e9ebd74e5ee68eebbac8 (patch)
tree28feb74ef51a15526a473f8059c71e707e5963ff
parent9e2e58976df61dbba79d3e24ecb0c07bfe6969e1 (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>
-rw-r--r--plugins/tedge_apt_plugin/src/main.rs6
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",