Don't return a default value

This commit is contained in:
Yash Karandikar 2022-04-30 17:29:10 -05:00
parent 890f9735a3
commit 7c48a0c804
Signed by: karx
GPG key ID: A794DA2529474BA5

View file

@ -179,5 +179,7 @@ fn check_direction(square1: (i32, i32), square2: (i32, i32)) -> Direction {
return Direction::Down;
};
Direction::Up
unreachable!(
"why are we still here? just to suffer? (this should never ever ever happen, by the way)"
);
}