Make Error and GameType enums non-exhaustive

So that it's not a breaking change to add more variants in the future.
This commit is contained in:
Oliver Hamlet
2025-01-29 18:38:24 +00:00
parent 9e2aa0cf9c
commit a8f9a5734a
4 changed files with 7 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ fn map_error(err: &Error) -> c_int {
Error::ParsingError(_, _) => LCI_ERROR_PARSING_ERROR,
Error::PeParsingError(_, _) => LCI_ERROR_PE_PARSING_ERROR,
Error::IoError(_, _) => LCI_ERROR_IO_ERROR,
_ => LCI_ERROR_INTERNAL_LOGIC_ERROR,
}
}