Skip to content

Commit

Permalink
Merge pull request #3 from wassup-/feature/error-impl
Browse files Browse the repository at this point in the history
Make `Error` derive `thiserror::Error`
  • Loading branch information
wassup- authored Mar 29, 2024
2 parents ad0fe69 + 0846e53 commit 3680f03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aces/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ pub trait NotificationsReceiver {
fn next(&mut self) -> Vec<u8>;
}

#[derive(Eq, PartialEq, Debug)]
#[derive(Eq, PartialEq, Debug, thiserror::Error)]
pub enum ParseError {
#[error("Not enough data")]
NotEnoughData,
#[error("Invalid checksum")]
InvalidChecksum,
#[error("Invalid data")]
InvalidData,
}

Expand Down

0 comments on commit 3680f03

Please # to comment.