From a937bd5d01647104fe8a41d70dca8b197b98c1b1 Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Mon, 23 Sep 2024 09:38:10 +0200 Subject: [PATCH] Adjust lifetime in trait definition --- src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits.rs b/src/traits.rs index 530913f..c9a6838 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -102,7 +102,7 @@ pub trait PcapReaderIterator { /// Get the next pcap block, if possible. Returns the number of bytes read and the block. /// /// The returned object is valid until `consume` or `refill` is called. - fn next(&mut self) -> Result<(usize, PcapBlockOwned), PcapError<&[u8]>>; + fn next(&mut self) -> Result<(usize, PcapBlockOwned<'_>), PcapError<&[u8]>>; /// Consume data, and shift buffer if needed. /// /// If the position gets past the buffer's half, this will move the remaining data to the