mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: replace channel macros with ext trait methods
This commit is contained in:
parent
d5744f597c
commit
f929aef2d9
50 changed files with 658 additions and 476 deletions
|
@ -1,4 +1,5 @@
|
|||
use crate::{send_async, spawn};
|
||||
use crate::channels::AsyncSenderExt;
|
||||
use crate::spawn;
|
||||
use color_eyre::eyre::WrapErr;
|
||||
use color_eyre::{Report, Result};
|
||||
use serde::Deserialize;
|
||||
|
@ -302,11 +303,11 @@ impl Script {
|
|||
_ = handle.wait() => break,
|
||||
Ok(Some(line)) = stdout_lines.next_line() => {
|
||||
debug!("sending stdout line: '{line}'");
|
||||
send_async!(tx, OutputStream::Stdout(line));
|
||||
tx.send_expect(OutputStream::Stdout(line)).await;
|
||||
}
|
||||
Ok(Some(line)) = stderr_lines.next_line() => {
|
||||
debug!("sending stderr line: '{line}'");
|
||||
send_async!(tx, OutputStream::Stderr(line));
|
||||
tx.send_expect(OutputStream::Stderr(line)).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue