diff options
Diffstat (limited to 'crates/core/tedge_agent/src/state.rs')
-rw-r--r-- | crates/core/tedge_agent/src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_agent/src/state.rs b/crates/core/tedge_agent/src/state.rs index 36b378dd..7f482822 100644 --- a/crates/core/tedge_agent/src/state.rs +++ b/crates/core/tedge_agent/src/state.rs @@ -41,7 +41,7 @@ impl StateRepository for AgentStateRepository { // Create in path given through `config-dir` or `/etc/tedge` directory in case it does not exist yet if !self.state_repo_root.exists() { - let () = fs::create_dir(&self.state_repo_root).await?; + fs::create_dir(&self.state_repo_root).await?; } let mut temppath = self.state_repo_path.clone(); @@ -58,7 +58,7 @@ impl StateRepository for AgentStateRepository { operation_id: None, operation: None, }; - let () = self.store(&state).await?; + self.store(&state).await?; Ok(state) } |