From 96d389a6515f763f179c23742a9f578659ae9509 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 3 Sep 2022 16:30:21 +0200 Subject: [PATCH] fix test --- src/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/time.rs b/src/time.rs index c2392b3..d1137d5 100644 --- a/src/time.rs +++ b/src/time.rs @@ -38,7 +38,7 @@ impl TryFrom for CcsdsTimeCodes { } } -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq, Copy, Clone)] pub enum TimestampError { /// Contains tuple where first value is the expected time code and the second /// value is the found raw value @@ -336,7 +336,7 @@ mod tests { let res = time_stamper.write_to_bytes(&mut buf[0..i]); assert!(res.is_err()); match res.unwrap_err() { - ToBytesSliceTooSmall(missmatch) => { + OtherPacketError(ToBytesSliceTooSmall(missmatch)) => { assert_eq!(missmatch.found, i); assert_eq!(missmatch.expected, 7); }