mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Better protocol parameters and utils tests
This commit is contained in:
parent
3a83588802
commit
544ce897c5
4 changed files with 110 additions and 44 deletions
|
|
@ -3,13 +3,13 @@ use std::fmt::Formatter;
|
|||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum GDError {
|
||||
IDK(String)
|
||||
PacketOverflow
|
||||
}
|
||||
|
||||
impl fmt::Display for GDError {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
GDError::IDK(details) => write!(f, "IDK: {details}")
|
||||
GDError::PacketOverflow => write!(f, "Packet overflow!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue