switch to thiserror completely

This commit is contained in:
2024-11-08 14:17:36 +01:00
parent c0b4653c01
commit 9d23ac5b9b
14 changed files with 153 additions and 427 deletions

View File

@ -297,7 +297,7 @@ mod tests {
buf[written - 1] -= 1;
let crc: u16 = ((buf[written - 2] as u16) << 8) as u16 | buf[written - 1] as u16;
let error = EofPdu::from_bytes(&buf).unwrap_err();
if let PduError::ChecksumError(e) = error {
if let PduError::Checksum(e) = error {
assert_eq!(e, crc);
} else {
panic!("expected crc error");