From a0fe24c45eb0ba64cfff555c8d4640112b45546e Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 21 Oct 2024 05:55:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20further=20simplify=20file=20cont?= =?UTF-8?q?ent=20value=20access?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/config.rs b/src/modules/config.rs index c7d2642..c9c3ba0 100644 --- a/src/modules/config.rs +++ b/src/modules/config.rs @@ -53,8 +53,9 @@ impl Config { let mut config = Self::default(); let path = Self::get_path(); - let file = fs::read_to_string(&path); - let file = if let Ok(f) = file { f } else { return config }; + let Ok(file) = fs::read_to_string(&path) else { + return config; + }; match Options::default() .with_default_extension(Extensions::IMPLICIT_SOME)