mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 23:23:05 +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
|
0b001
|
||||||
}
|
}
|
||||||
Command::InputSearch(c) => {
|
Command::InputSearch(c) => {
|
||||||
if s.query.is_empty() {
|
let empty = s.query.is_empty();
|
||||||
s.query.push(c);
|
s.query.push(c);
|
||||||
|
if empty {
|
||||||
s.update_search(&queue_strings);
|
s.update_search(&queue_strings);
|
||||||
} else {
|
} else {
|
||||||
s.query.push(c);
|
|
||||||
let query = s.query.to_lowercase();
|
let query = s.query.to_lowercase();
|
||||||
s.filtered.retain(|&i| queue_strings[i].contains(&query));
|
s.filtered.retain(|&i| queue_strings[i].contains(&query));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue