From a66180d817012f00754841c111b92c6d14516c34 Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 29 Dec 2023 22:35:16 +0100 Subject: [PATCH] Remove Result from Config loading --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 4eddd4b..7a299b6 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -13,7 +13,7 @@ pub(crate) struct Config { } impl Config { - pub(crate) fn load() -> Result { + pub(crate) fn load() -> Self { let cfg: Self = match confy::load(env!("CARGO_PKG_NAME"), "config") { Ok(data) => data, Err(e) => panic!("config.toml not found: {e}"), @@ -36,7 +36,7 @@ impl Config { panic!("'Description' type Post Body only supported for Volumes!") } }); - Ok(cfg) + cfg } }