mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 15:13:03 +00:00
fix clippy warning: branches-sharing-code
This commit is contained in:
parent
b52d3493ba
commit
1de20d58ec
1 changed files with 3 additions and 3 deletions
|
@ -441,11 +441,11 @@ async fn run() -> Result<()> {
|
|||
0b001
|
||||
}
|
||||
Command::InputSearch(c) => {
|
||||
if s.query.is_empty() {
|
||||
s.query.push(c);
|
||||
let empty = s.query.is_empty();
|
||||
s.query.push(c);
|
||||
if empty {
|
||||
s.update_search(&queue_strings);
|
||||
} else {
|
||||
s.query.push(c);
|
||||
let query = s.query.to_lowercase();
|
||||
s.filtered.retain(|&i| queue_strings[i].contains(&query));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue