Skip to content

Commit

Permalink
login: Remove InvalidProtocolVersion error enumerator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gtker committed Feb 26, 2024
1 parent 9b05ce7 commit 5814446
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wow_login_messages/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,13 @@ impl From<std::io::Error> for ExpectedOpcodeError {

#[derive(Debug)]
pub enum CollectiveError {
InvalidProtocolVersion,
InvalidFieldSet,
Io(std::io::Error),
}

impl Display for CollectiveError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
CollectiveError::InvalidProtocolVersion => write!(f, "invalid protocol version"),
CollectiveError::InvalidFieldSet => write!(f, "invalid field set in struct"),
CollectiveError::Io(i) => i.fmt(f),
}
Expand Down

0 comments on commit 5814446

Please sign in to comment.