diff --git a/src/serialrw.rs b/src/serialrw.rs index e7c5acd..de817ba 100644 --- a/src/serialrw.rs +++ b/src/serialrw.rs @@ -21,7 +21,7 @@ enum Byte { Stx, Etx, Atx, - FramingError(u8), + FramingError, } pub struct SerialFrameReader { reader: R, @@ -60,7 +60,7 @@ impl SerialFrameReader { EESC => Ok(crate::serialrw::Byte::Data(ESC)), b => { warn!("Framing error, invalid escape byte {}", b); - Ok(crate::serialrw::Byte::FramingError(b)) + Ok(crate::serialrw::Byte::FramingError) } } }