diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-29 15:19:48 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-08 13:44:10 +0200 |
commit | 770bf00753c43040b30afc6e71ba7539556eb3a0 (patch) | |
tree | 15855c5960fba8ea0af07cdd1c3d6cce2b4da1fd | |
parent | 098cd1bc0b8a5fb46d114733c5f5c632fc25587e (diff) |
tedge: Remove unnecessary let _ =
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/core/tedge/src/cli/connect/command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge/src/cli/connect/command.rs b/crates/core/tedge/src/cli/connect/command.rs index faed5fde..8714bdd7 100644 --- a/crates/core/tedge/src/cli/connect/command.rs +++ b/crates/core/tedge/src/cli/connect/command.rs @@ -489,7 +489,7 @@ fn clean_up( bridge_config: &BridgeConfig, ) -> Result<(), ConnectError> { let path = get_bridge_config_file_path(config_location, bridge_config); - let _ = std::fs::remove_file(&path).or_else(ok_if_not_found)?; + std::fs::remove_file(&path).or_else(ok_if_not_found)?; Ok(()) } @@ -516,7 +516,7 @@ fn write_bridge_config_to_file( .join(TEDGE_BRIDGE_CONF_DIR_PATH); // This will forcefully create directory structure if it doesn't exist, we should find better way to do it, maybe config should deal with it? - let _ = create_directories(&dir_path)?; + create_directories(&dir_path)?; let common_config_path = get_common_mosquitto_config_file_path(config_location, common_mosquitto_config); |