Skip to content

Commit

Permalink
Fix build with rustc 1.53
Browse files Browse the repository at this point in the history
  • Loading branch information
chifflier committed Jan 22, 2024
1 parent 56aa4cc commit 9ad632f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ where
PcapError::BufferTooSmall => write!(f, "Buffer is too small"),
PcapError::UnexpectedEof => write!(f, "Unexpected end of file"),
PcapError::ReadError => write!(f, "Read error"),
PcapError::Incomplete(n) => write!(f, "Incomplete read: {n}"),
PcapError::Incomplete(n) => write!(f, "Incomplete read: {}", n),
PcapError::HeaderNotRecognized => write!(f, "Header not recognized as PCAP or PCAPNG"),
PcapError::NomError(i, e) => write!(f, "Internal parser error {:?}, input {:?}", e, i),
PcapError::OwnedNomError(i, e) => {
Expand Down

0 comments on commit 9ad632f

Please sign in to comment.