From 967d013a963852a8c223dc6bba484ff008e92085 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:24:14 -0500 Subject: [PATCH] Clean up error handling further --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index ca87c16..575f9f2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -38,7 +38,7 @@ impl Config { let path = match paths.into_iter().find(|p| p.exists()) { Some(path) => path, - None => return Ok(Self::try_config_default()?), + None => return Self::try_config_default(), }; let contents = fs::read_to_string(path)?; @@ -47,7 +47,7 @@ impl Config { } else { toml::from_str(&contents)? }; - Ok(Self::from_entry_config(&entry_config)?) + Self::from_entry_config(&entry_config) } /// This method does not look for the config file and uses [`EntryConfig`]'s defaults instead.