Skip to content

Commit

Permalink
Adjust lifetime in trait definition
Browse files Browse the repository at this point in the history
  • Loading branch information
chifflier committed Oct 14, 2024
1 parent 89c18d4 commit a937bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a937bd5

Please sign in to comment.