Skip to content

Commit

Permalink
chore: shorten ExitReason Display impl
Browse files Browse the repository at this point in the history
  • Loading branch information
vmenge committed Jan 15, 2024
1 parent 0c63490 commit e59035a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "speare"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
license = "MIT"
description = "actor-like thin abstraction over tokio::task and flume channels"
Expand Down
6 changes: 3 additions & 3 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ where
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Handle => write!(f, "Process exited due to manual request through Handle::stop"),
Self::Parent => write!(f, "Process exited due to a request from its Parent process as a part of its supervision strategy"),
Self::Err(e) => write!(f, "Process exited due to error: {e}"),
Self::Handle => write!(f, "manual exit through Handle::stop"),
Self::Parent => write!(f, "exit request from parent supervision strategy"),
Self::Err(e) => write!(f, "error: {e}"),
}
}
}
Expand Down

0 comments on commit e59035a

Please sign in to comment.