1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

non_exhaustive errors

This commit is contained in:
Robin Appelman 2024-12-04 14:55:13 +01:00
commit fb471a5a44

View file

@ -9,6 +9,7 @@ use std::str::Utf8Error;
use std::string::FromUtf8Error;
/// Errors that can occur during parsing
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum ParseError {
#[error(display = "Error while reading bits from stream: {}", _0)]
@ -89,6 +90,7 @@ pub enum ParseError {
UnknownDefinition(SendPropIdentifier),
}
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum MalformedSendPropDefinitionError {
#[error(display = "Float property without defined size")]
@ -110,6 +112,7 @@ pub enum MalformedSendPropDefinitionError {
},
}
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum GameEventError {
#[error(display = "Incorrect number of values")]