From ad3eb102beee453bf985f3878e84135875e00bbe Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 16 Oct 2020 16:31:35 +0100 Subject: [PATCH] fix this breaking change --- src/exit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exit.rs b/src/exit.rs index a0d6c74..9f1d14d 100644 --- a/src/exit.rs +++ b/src/exit.rs @@ -74,8 +74,8 @@ impl FromStr for Exit { let position = position.unwrap(); - let effect = if let Some(transition_line) = parts.next() { - Transition::from(transition_line) + let effect = if parts.next().is_some() { + Transition::from(parts.next().unwrap()) } else { Transition::None };