diff --git a/src/main.rs b/src/main.rs index 7662314..5a98350 100644 --- a/src/main.rs +++ b/src/main.rs @@ -789,9 +789,8 @@ impl App { if !self.config.profiles.is_empty() { let mut profiles_section = widget::settings::view_section(""); for (profile_name, profile_id) in self.config.profile_names() { - let profile = match self.config.profiles.get(&profile_id) { - Some(some) => some, - None => continue, + let Some(profile) = self.config.profiles.get(&profile_id) else { + continue; }; let expanded = self.profile_expanded == Some(profile_id); diff --git a/src/terminal.rs b/src/terminal.rs index b7a5452..af004bb 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -437,9 +437,8 @@ impl Terminal { } } - let search_regex = match &mut self.search_regex_opt { - Some(some) => some, - None => return, + let Some(search_regex) = &mut self.search_regex_opt else { + return; }; // Determine search origin