use 'let/else' syntax (clippy::manual_let_else)
This commit is contained in:
parent
76d166b266
commit
34cf7bf76a
2 changed files with 4 additions and 6 deletions
|
|
@ -789,9 +789,8 @@ impl App {
|
||||||
if !self.config.profiles.is_empty() {
|
if !self.config.profiles.is_empty() {
|
||||||
let mut profiles_section = widget::settings::view_section("");
|
let mut profiles_section = widget::settings::view_section("");
|
||||||
for (profile_name, profile_id) in self.config.profile_names() {
|
for (profile_name, profile_id) in self.config.profile_names() {
|
||||||
let profile = match self.config.profiles.get(&profile_id) {
|
let Some(profile) = self.config.profiles.get(&profile_id) else {
|
||||||
Some(some) => some,
|
continue;
|
||||||
None => continue,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let expanded = self.profile_expanded == Some(profile_id);
|
let expanded = self.profile_expanded == Some(profile_id);
|
||||||
|
|
|
||||||
|
|
@ -437,9 +437,8 @@ impl Terminal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let search_regex = match &mut self.search_regex_opt {
|
let Some(search_regex) = &mut self.search_regex_opt else {
|
||||||
Some(some) => some,
|
return;
|
||||||
None => return,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Determine search origin
|
// Determine search origin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue