diff options
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", |