Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Mar 22, 2024
1 parent 50b7c5d commit 4327eb9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["git@bigly.dog"]
description = "Space Age seD | /~https://github.com/ms-jpq/sad"
edition = "2021"
name = "sad"
version = "0.4.24"
version = "0.4.25"


[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SHELL := bash
.ONESHELL:
.SHELLFLAGS := --norc --noprofile -Eeuo pipefail -O dotglob -O nullglob -O failglob -O globstar -c

.DEFAULT_GOAL := help
.DEFAULT_GOAL := dev

.PHONY: clean clobber lint mypy clippy deps build release ci test

Expand Down Expand Up @@ -34,6 +34,9 @@ clobber: clean
mypy: .venv/$(VENV)/mypy
'$<' -- .

dev:
cargo build

clippy:
cargo clippy --all-targets --all-features

Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ async fn consume(stream: impl Stream<Item = Result<(), Die>> + Send + Unpin) ->
match out.next().await {
None | Some(Die::Eof) => break,
Some(Die::Interrupt) => return Err(Die::Interrupt),
Some(e) => eprintln!("{}", Colour::Red.paint(format!("{e}"))),
Some(e) => {
eprintln!("{}", Colour::Red.paint(format!("{e}")));
return Err(e);
}
}
}
Ok(())
Expand Down

0 comments on commit 4327eb9

Please sign in to comment.