remove deprecated enum values

This commit is contained in:
yggverse 2025-03-24 22:38:07 +02:00
parent 845f3dc77e
commit 1b96270598

View file

@ -4,7 +4,6 @@ use std::fmt::{Display, Formatter, Result};
pub enum Error { pub enum Error {
Default(super::default::Error), Default(super::default::Error),
FirstByte(u8), FirstByte(u8),
Protocol,
SecondByte(u8), SecondByte(u8),
Sensitive(super::sensitive::Error), Sensitive(super::sensitive::Error),
UndefinedFirstByte, UndefinedFirstByte,
@ -20,9 +19,6 @@ impl Display for Error {
Self::FirstByte(b) => { Self::FirstByte(b) => {
write!(f, "Unexpected first byte: {b}") write!(f, "Unexpected first byte: {b}")
} }
Self::Protocol => {
write!(f, "Protocol error")
}
Self::SecondByte(b) => { Self::SecondByte(b) => {
write!(f, "Unexpected second byte: {b}") write!(f, "Unexpected second byte: {b}")
} }