diff options
author | Didier Wenzek <didier.wenzek@acidalie.com> | 2022-08-18 15:50:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 15:50:02 +0200 |
commit | 52b5b185ba9e0564c11da74f26af99035fafa151 (patch) | |
tree | db5a0157fdf51209f2759a99bf0859719d6f12f5 /plugins/tedge_apt_plugin | |
parent | 42c1d7bb3e39f6c8da77ab81d9c34f722affcffb (diff) | |
parent | 5c9cc5387a08eea6c167e9ebd74e5ee68eebbac8 (diff) |
Merge pull request #1279 from matthiasbeyer/remove-let-unit
Clippy: Remove let unit
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", |