From f5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 15 Oct 2018 16:38:32 +0200 Subject: add "kill" as synonym for success --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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 { match s { - "success" => Ok(FightOutcome::Success), + "success" | "kill" => Ok(FightOutcome::Success), "wipe" | "fail" => Ok(FightOutcome::Wipe), _ => Err("Must be success or wipe"), } -- cgit v1.2.3