box sub error types

This commit is contained in:
Robin Appelman 2023-03-21 20:06:53 +01:00
commit a90cb67dc2
4 changed files with 18 additions and 5 deletions

View file

@ -21,8 +21,8 @@ pub enum GameEventError {
ty: RawEventType,
params: String,
},
#[error("incomplete event body({0:?})")]
Incomplete(RawEventType),
#[error("truncated event body({0:?})")]
Truncated(RawEventType),
}
trait GameEventErrTrait<T> {