mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-23 11:07:45 +02:00
chore: use if let Event ♻️
This commit is contained in:
parent
2e726522fc
commit
4b386ce9d6
1 changed files with 2 additions and 3 deletions
|
@ -373,9 +373,8 @@ impl TaskwarriorTui {
|
|||
pub async fn abort_event_loop(&mut self) -> Result<()> {
|
||||
self.event_loop.abort.send(())?;
|
||||
while let Some(event) = self.next().await {
|
||||
match event {
|
||||
Event::Closed => break,
|
||||
_ => (),
|
||||
if let Event::Closed = event {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue