mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user