From 9ad632fdac5393b4677623bc1168202f156c3209 Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Mon, 22 Jan 2024 16:29:54 +0100 Subject: [PATCH] Fix build with rustc 1.53 --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 9d6aea5..5a487ec 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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) => {