summaryrefslogtreecommitdiffstats
path: root/crates/common/tedge_config
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-02-23 10:45:35 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-02-23 10:45:36 +0100
commite747accb3236ec5baf2069c6882e0ea0508421c8 (patch)
treede712f5db631c0dffbbc40d3e7705e34a58d05f2 /crates/common/tedge_config
parentcae66180e676c5cc1cc94ee576c725d4df0858c5 (diff)
Remove unnecessary ? operator
This fixes the clippy lint `clippy::needless_question_mark`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'crates/common/tedge_config')
-rw-r--r--crates/common/tedge_config/src/tedge_config.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/common/tedge_config/src/tedge_config.rs b/crates/common/tedge_config/src/tedge_config.rs
index 69d3d0da..ab689ae4 100644
--- a/crates/common/tedge_config/src/tedge_config.rs
+++ b/crates/common/tedge_config/src/tedge_config.rs
@@ -5,8 +5,7 @@ use std::convert::{TryFrom, TryInto};
/// loads tedge config from system default
pub fn get_tedge_config() -> Result<TEdgeConfig, TEdgeConfigError> {
let tedge_config_location = TEdgeConfigLocation::default();
- let config_repository = TEdgeConfigRepository::new(tedge_config_location);
- Ok(config_repository.load()?)
+ TEdgeConfigRepository::new(tedge_config_location).load()
}
/// Represents the complete configuration of a thin edge device.