Skip to content

Commit

Permalink
what
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Mar 22, 2024
1 parent 0e960ae commit 536ae60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions ci/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
(
Expand Down
14 changes: 4 additions & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 536ae60

Please sign in to comment.