Skip to content

Commit

Permalink
Fix clippy unused FramingError value warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanda Vacek committed Apr 15, 2024
1 parent 043d61d commit 705b3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialrw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum Byte {
Stx,
Etx,
Atx,
FramingError(u8),
FramingError,
}
pub struct SerialFrameReader<R: AsyncRead + Unpin + Send> {
reader: R,
Expand Down Expand Up @@ -60,7 +60,7 @@ impl<R: AsyncRead + Unpin + Send> SerialFrameReader<R> {
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)
}
}
}
Expand Down

0 comments on commit 705b3e0

Please sign in to comment.