From 9ec361787c8b8fc612b2676eaea3a7924e5022d2 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 6 Oct 2021 19:34:53 +0200 Subject: [PATCH] fix(mac-utils): fix warning --- espanso-mac-utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espanso-mac-utils/src/lib.rs b/espanso-mac-utils/src/lib.rs index f3cfcca..de6c3b3 100644 --- a/espanso-mac-utils/src/lib.rs +++ b/espanso-mac-utils/src/lib.rs @@ -85,7 +85,7 @@ fn get_app_name_from_path(path: &str) -> Option { static ref APP_REGEX: Regex = Regex::new("/([^/]+).(app|bundle)/").unwrap(); }; - let caps = APP_REGEX.captures(&path); + let caps = APP_REGEX.captures(path); caps.map(|caps| caps.get(1).map_or("", |m| m.as_str()).to_owned()) }