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 };