fix this breaking change

This commit is contained in:
Max Bradbury 2020-10-16 16:31:35 +01:00
parent fe22e78423
commit ad3eb102be
1 changed files with 2 additions and 2 deletions

View File

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