summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <github@bigly.dog>2024-03-22 15:36:12 -0700
committerroot <github@bigly.dog>2024-03-22 15:38:45 -0700
commit536ae60def1ae9746a5d2a7fe3bbc59d1f75837f (patch)
tree7683c03d8d15dbf5c0f962094f95cc25baaa8685
parent0e960aebd96dc51e7c14dc33d52353cb27d1a146 (diff)
-rwxr-xr-xci/release.py3
-rw-r--r--src/main.rs14
2 files changed, 5 insertions, 12 deletions
diff --git a/ci/release.py b/ci/release.py
index 94395e8..624b213 100755
--- a/ci/release.py
+++ b/ci/release.py
@@ -64,8 +64,7 @@ def _release(project: _Project) -> None:
body = (_TOP_LEVEL / "RELEASE_NOTES.md").read_text()
message = f"{title}{linesep}{linesep}{body}"
- arts = (normcase(p) for p in _walk(_TOP_LEVEL / "arts"))
- attachments = chain.from_iterable(zip(repeat("--attach"), arts))
+ attachments = (normcase(p) for p in _walk(_TOP_LEVEL / "arts"))
check_call(
(
diff --git a/src/main.rs b/src/main.rs
index 4624215..f026eec 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -72,17 +72,11 @@ async fn consume(stream: impl Stream<Item = Result<(), Die>> + Send) -> Result<(
int,
);
let mut out = pin!(out);
- loop {
- match out.next().await {
- None | Some(Die::Eof) => break,
- Some(Die::Interrupt) => return Err(Die::Interrupt),
- Some(e) => {
- eprintln!("{}", Colour::Red.paint(format!("{e}")));
- return Err(e);
- }
- }
+ match out.next().await {
+ None | Some(Die::Eof) => Ok(()),
+ Some(Die::Interrupt) => Err(Die::Interrupt),
+ Some(e) => Err(e),
}
- Ok(())
}
async fn run(threads: usize) -> Result<(), Die> {