From 4f7064fe885cc0a0502b526128f588dea2708418 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 5 Sep 2026 20:36:28 +0100 Subject: replace match with if-let --- src/config.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index b44445b..3dcdf85 100644 --- a/src/config.rs +++ b/src/config.rs @@ -31,9 +31,8 @@ impl Config { pub fn find_config() -> Option { for path in default_config_file_locations() { - match Self::parse_config_file_at_path(&path) { - Ok(config) => { return Some(config); }, - Err(_) => {}, + if let Ok(config) = Self::parse_config_file_at_path(&path) { + return Some(config); }; }; None -- cgit v1.2.3