mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +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<()> {
|
pub async fn abort_event_loop(&mut self) -> Result<()> {
|
||||||
self.event_loop.abort.send(())?;
|
self.event_loop.abort.send(())?;
|
||||||
while let Some(event) = self.next().await {
|
while let Some(event) = self.next().await {
|
||||||
match event {
|
if let Event::Closed = event {
|
||||||
Event::Closed => break,
|
break;
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue