tsproto_types/
errors.rs

1use std::fmt;
2
3use num_derive::{FromPrimitive, ToPrimitive};
4
5include!(concat!(env!("OUT_DIR"), "/errors.rs"));
6
7impl fmt::Display for Error {
8	fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::Debug::fmt(self, f) }
9}
10
11impl std::error::Error for Error {
12	fn description(&self) -> &str { "TeamSpeak error" }
13}