aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2018-10-15 16:38:32 +0200
committerDaniel <kingdread@gmx.de>2018-10-15 16:38:32 +0200
commitf5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8 (patch)
treee75ddfc4cd5073248d93b51ade450175de225331
parente3dacb69c022107596e0e1483f2be981c8da0dc7 (diff)
downloadraidgrep-f5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8.tar.gz
raidgrep-f5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8.tar.bz2
raidgrep-f5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8.zip
add "kill" as synonym for success
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9e54453..90deb5d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -172,7 +172,7 @@ impl FromStr for FightOutcome {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
- "success" => Ok(FightOutcome::Success),
+ "success" | "kill" => Ok(FightOutcome::Success),
"wipe" | "fail" => Ok(FightOutcome::Wipe),
_ => Err("Must be success or wipe"),
}