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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue