Better protocol parameters and utils tests

This commit is contained in:
CosminPerRam 2022-10-17 11:11:40 +03:00
parent 3a83588802
commit 544ce897c5
4 changed files with 110 additions and 44 deletions

View file

@ -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!")
}
}
}