summaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-07-22 08:23:38 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-18 14:46:54 +0200
commit42ea1faa30d60ebb6855b6b355da61e6a9179c30 (patch)
treeee3fbf1885fbe18871a0d453aa5eaa1464d7feef /crates
parent7807aba4f82c7e3e761e5429392693979ed5953e (diff)
Fix clippy in tedge_config: Remove let-unit-value
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/common/tedge_config/src/tedge_config_repository.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/common/tedge_config/src/tedge_config_repository.rs b/crates/common/tedge_config/src/tedge_config_repository.rs
index 5c818c7b..894116d8 100644
--- a/crates/common/tedge_config/src/tedge_config_repository.rs
+++ b/crates/common/tedge_config/src/tedge_config_repository.rs
@@ -32,10 +32,10 @@ impl ConfigRepository<TEdgeConfig> for TEdgeConfigRepository {
// Create `$HOME/.tedge` or `/etc/tedge` directory in case it does not exist yet
if !self.config_location.tedge_config_root_path.exists() {
- let () = fs::create_dir(self.config_location.tedge_config_root_path())?;
+ fs::create_dir(self.config_location.tedge_config_root_path())?;
}
- let () = atomically_write_file_sync(
+ atomically_write_file_sync(
self.config_location.temporary_tedge_config_file_path(),
self.config_location.tedge_config_file_path(),
toml.as_bytes(),