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)