diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-22 08:23:39 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 14:46:54 +0200 |
commit | 461530a53b15afb23b3c4a0d1606cc136f601da2 (patch) | |
tree | 8cc907a12a3a383e7da92ecac1e2157f2fc3b726 | |
parent | fbe880cf658b5875a1e86bff888024ea49688893 (diff) |
Fix clippy in plugin_sm: Remove let-unit-value
This patch fixes `clippy::let_unit_value`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/core/plugin_sm/src/operation_logs.rs | 4 | ||||
-rw-r--r-- | crates/core/plugin_sm/tests/plugin.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/core/plugin_sm/src/operation_logs.rs b/crates/core/plugin_sm/src/operation_logs.rs index 7bf08eab..7912eaa7 100644 --- a/crates/core/plugin_sm/src/operation_logs.rs +++ b/crates/core/plugin_sm/src/operation_logs.rs @@ -108,10 +108,10 @@ impl OperationLogs { for (key, value) in log_tracker.iter_mut() { if key.starts_with("software-list") { // only allow one update list file in logs - let () = remove_old_logs(value, &self.log_dir, 1)?; + remove_old_logs(value, &self.log_dir, 1)?; } else { // allow most recent five - let () = remove_old_logs(value, &self.log_dir, 5)?; + remove_old_logs(value, &self.log_dir, 5)?; } } diff --git a/crates/core/plugin_sm/tests/plugin.rs b/crates/core/plugin_sm/tests/plugin.rs index 724813fb..366bfbcf 100644 --- a/crates/core/plugin_sm/tests/plugin.rs +++ b/crates/core/plugin_sm/tests/plugin.rs @@ -410,7 +410,7 @@ mod tests { fn get_dummy_plugin_tmp_path() -> PathBuf { let path = PathBuf::from_str("/tmp/.tedge_dummy_plugin").unwrap(); if !&path.exists() { - let () = fs::create_dir(&path).unwrap(); + fs::create_dir(&path).unwrap(); } path } |